summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2023-08-01 19:50:17 +0200
committerLibravatar GitHub <noreply@github.com>2023-08-01 18:50:17 +0100
commit2be83fdca5c440d45b8cd92bda9315757463d6c7 (patch)
tree041eb0ef390f2995cd243206c5f0cc8fb3d66488 /cmd
parent[feature] Set timezone in Docker using TZ env variable (#2050) (diff)
downloadgotosocial-2be83fdca5c440d45b8cd92bda9315757463d6c7.tar.xz
[feature] Allow users to skip http client tls verification for testing purposes (with appropriately loud warnings) (#2052)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/gotosocial/action/server/server.go7
1 files changed, 4 insertions, 3 deletions
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.