diff options
author | 2023-08-01 19:50:17 +0200 | |
---|---|---|
committer | 2023-08-01 18:50:17 +0100 | |
commit | 2be83fdca5c440d45b8cd92bda9315757463d6c7 (patch) | |
tree | 041eb0ef390f2995cd243206c5f0cc8fb3d66488 /internal/config/flags.go | |
parent | [feature] Set timezone in Docker using TZ env variable (#2050) (diff) | |
download | gotosocial-2be83fdca5c440d45b8cd92bda9315757463d6c7.tar.xz |
[feature] Allow users to skip http client tls verification for testing purposes (with appropriately loud warnings) (#2052)
Diffstat (limited to 'internal/config/flags.go')
-rw-r--r-- | internal/config/flags.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/config/flags.go b/internal/config/flags.go index c42b5c7b2..321400252 100644 --- a/internal/config/flags.go +++ b/internal/config/flags.go @@ -60,6 +60,7 @@ func (s *ConfigState) AddGlobalFlags(cmd *cobra.Command) { cmd.PersistentFlags().StringSlice(HTTPClientAllowIPsFlag(), cfg.HTTPClient.AllowIPs, "no usage string") cmd.PersistentFlags().StringSlice(HTTPClientBlockIPsFlag(), cfg.HTTPClient.BlockIPs, "no usage string") cmd.PersistentFlags().Duration(HTTPClientTimeoutFlag(), cfg.HTTPClient.Timeout, "no usage string") + cmd.PersistentFlags().Bool(HTTPClientTLSInsecureSkipVerifyFlag(), cfg.HTTPClient.TLSInsecureSkipVerify, "no usage string") }) } |