From 2be83fdca5c440d45b8cd92bda9315757463d6c7 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Tue, 1 Aug 2023 19:50:17 +0200 Subject: [feature] Allow users to skip http client tls verification for testing purposes (with appropriately loud warnings) (#2052) --- cmd/gotosocial/action/server/server.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cmd') diff --git a/cmd/gotosocial/action/server/server.go b/cmd/gotosocial/action/server/server.go index cdcedd47f..ad1fe5763 100644 --- a/cmd/gotosocial/action/server/server.go +++ b/cmd/gotosocial/action/server/server.go @@ -107,9 +107,10 @@ var Start action.GTSAction = func(ctx context.Context) error { // Build HTTP client client := httpclient.New(httpclient.Config{ - AllowRanges: config.MustParseIPPrefixes(config.GetHTTPClientAllowIPs()), - BlockRanges: config.MustParseIPPrefixes(config.GetHTTPClientBlockIPs()), - Timeout: config.GetHTTPClientTimeout(), + AllowRanges: config.MustParseIPPrefixes(config.GetHTTPClientAllowIPs()), + BlockRanges: config.MustParseIPPrefixes(config.GetHTTPClientBlockIPs()), + Timeout: config.GetHTTPClientTimeout(), + TLSInsecureSkipVerify: config.GetHTTPClientTLSInsecureSkipVerify(), }) // Initialize workers. -- cgit v1.2.3