Fix examples/client.go
This commit is contained in:
parent
8181b86759
commit
dad8f38bfb
@ -28,7 +28,7 @@ type Client struct {
|
|||||||
Timeout time.Duration
|
Timeout time.Duration
|
||||||
|
|
||||||
// InsecureTrustAlways specifies whether the client should trust
|
// InsecureTrustAlways specifies whether the client should trust
|
||||||
// any certificate it recieves without checking KnownHosts
|
// any certificate it receives without checking KnownHosts
|
||||||
// or calling TrustCertificate.
|
// or calling TrustCertificate.
|
||||||
// Use with caution.
|
// Use with caution.
|
||||||
InsecureTrustAlways bool
|
InsecureTrustAlways bool
|
||||||
|
|||||||
@ -5,6 +5,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
|
"crypto/x509"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"log"
|
"log"
|
||||||