From bfa2e2b0fa93b6059fba0581b52d6d60a53b5a4a Mon Sep 17 00:00:00 2001 From: Randall Meyer Date: Wed, 15 Feb 2023 14:17:00 -0800 Subject: new flag: --connect-to Allows user to override DNS for the initial config request. This is accomplished using a custom DialContext overring the hostname used to Dial to. This allows for TLS certificate validation to still happen(optionally) while connecting to TLS secured resources. Also, - allows for optional enforcement of certificate verification - stamp built git version into binary and adds a --version option - adds a user-agent to all outgoing request - exit(1) on failures for easier shell error detection --- constants/constants.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'constants') diff --git a/constants/constants.go b/constants/constants.go index 8320295..66f7110 100644 --- a/constants/constants.go +++ b/constants/constants.go @@ -46,4 +46,6 @@ var ( DefaultDebug bool = false // The default URL for the config host. DefaultConfigHost string = "networkquality.example.com" + // The default determination of whether to verify server certificates + DefaultInsecureSkipVerify bool = true ) -- cgit v1.2.3