summaryrefslogtreecommitdiff
path: root/internal/clients/remote
diff options
context:
space:
mode:
Diffstat (limited to 'internal/clients/remote')
-rw-r--r--internal/clients/remote/connection.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/clients/remote/connection.go b/internal/clients/remote/connection.go
index 71639b1..f95c6a6 100644
--- a/internal/clients/remote/connection.go
+++ b/internal/clients/remote/connection.go
@@ -33,11 +33,11 @@ type Connection struct {
// Is it a persistent connection or a one-off?
isOneOff bool
// To deal with SSH server host keys
- hostKeyCallback *client.HostKeyCallback
+ hostKeyCallback client.HostKeyCallback
}
// NewConnection returns a new connection.
-func NewConnection(server string, userName string, authMethods []ssh.AuthMethod, hostKeyCallback *client.HostKeyCallback) *Connection {
+func NewConnection(server string, userName string, authMethods []ssh.AuthMethod, hostKeyCallback client.HostKeyCallback) *Connection {
logger.Debug(server, "Creating new connection")
c := Connection{