Fix examples/client.go

This commit is contained in:
Adnan Maolood 2020-10-31 22:50:42 -04:00
parent 8181b86759
commit dad8f38bfb
2 changed files with 15 additions and 1 deletions

View File

@ -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

View File

@ -5,6 +5,7 @@ package main
import ( import (
"bufio" "bufio"
"crypto/tls" "crypto/tls"
"crypto/x509"
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"log" "log"