diff options
author | Leah Neukirchen <leah@vuxu.org> | 2020-03-15 00:38:55 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2020-03-15 00:38:55 +0100 |
commit | 8385501cb7b07f7ae5b924752da68cbf12d885a0 (patch) | |
tree | 09d0efa1831df41572b5ed772fd7529196a501f1 | |
parent | dfc2408fee0a9b4b10abdeea99a97633bea6857c (diff) | |
download | htping-8385501cb7b07f7ae5b924752da68cbf12d885a0.tar.gz htping-8385501cb7b07f7ae5b924752da68cbf12d885a0.tar.xz htping-8385501cb7b07f7ae5b924752da68cbf12d885a0.zip |
rename kflag to insecure
-rw-r--r-- | htping.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/htping.go b/htping.go index 5e310fe..f511464 100644 --- a/htping.go +++ b/htping.go @@ -28,7 +28,7 @@ var flag6 bool var myHeaders headers var method string -var kflag bool +var insecure bool var http11 bool var keepalive bool @@ -43,7 +43,7 @@ func newTransport() *transport { tr := &transport{} tlsconfig := &tls.Config{ - InsecureSkipVerify: kflag, + InsecureSkipVerify: insecure, } tlsconfig.VerifyPeerCertificate = @@ -243,7 +243,7 @@ func main() { maxCount := flag.Int("c", -1, "quit after `count` requests") flood := flag.Bool("f", false, "flood ping") sleep := flag.Duration("i", 1*time.Second, "`interval` between requests") - flag.BoolVar(&kflag, "k", false, "turn TLS errors into warnings") + flag.BoolVar(&insecure, "k", false, "turn TLS errors into warnings") flag.BoolVar(&http11, "http1.1", false, "force HTTP/1.1") flag.BoolVar(&keepalive, "keepalive", false, |