From 0d3230a7d537120b7a0ff657685755022668d343 Mon Sep 17 00:00:00 2001 From: Adnan Maolood Date: Sat, 31 Oct 2020 23:41:30 -0400 Subject: [PATCH] Rename InsecureTrustAlways to InsecureSkipTrust --- client.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client.go b/client.go index f939511..76692b8 100644 --- a/client.go +++ b/client.go @@ -27,11 +27,11 @@ type Client struct { // A Timeout of zero means no timeout. Timeout time.Duration - // InsecureTrustAlways specifies whether the client should trust + // InsecureSkipTrust specifies whether the client should trust // any certificate it receives without checking KnownHosts // or calling TrustCertificate. // Use with caution. - InsecureTrustAlways bool + InsecureSkipTrust bool // GetInput is called to retrieve input when the server requests it. // If GetInput is nil or returns false, no input will be sent and @@ -208,7 +208,7 @@ func (c *Client) verifyConnection(req *Request, cs tls.ConnectionState) error { if err := verifyHostname(cert, hostname); err != nil { return err } - if c.InsecureTrustAlways { + if c.InsecureSkipTrust { return nil } // Check the known hosts