From ca88a0eaab18d73ca1400cf144ffe8a941c01025 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Wed, 25 Feb 2026 02:45:17 +0000 Subject: [PATCH] Add env var to skip TLS verify This makes it much easier to debug with mitmproxy --- stadia/stadia.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/stadia/stadia.go b/stadia/stadia.go index a919fca5..4d7aa737 100644 --- a/stadia/stadia.go +++ b/stadia/stadia.go @@ -1,6 +1,8 @@ package stadia import ( + "crypto/tls" + "os" "resty.dev/v3" //"github.com/rs/zerolog/log" ) @@ -17,6 +19,11 @@ func NewStadiaMaps(api_key string) *StadiaMaps { //r := resty.New().SetLogger(logger).SetDebug(true) //r := resty.New().SetDebug(true) r := resty.New() + if os.Getenv("STADIA_INSECURE_SKIP_VERIFY") != "" { + r.SetTLSClientConfig(&tls.Config{ + InsecureSkipVerify: true, + }) + } return &StadiaMaps{ APIKey: api_key, client: r,