From 3e5fb144ae6bb96cd52d6751512a1ee2815af436 Mon Sep 17 00:00:00 2001 From: Shiny Nematoda Date: Tue, 13 Dec 2022 07:28:04 +0000 Subject: [PATCH] [BREAKING]: Proxy is now set as env variable (HYP_PROXY) --- utils.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils.go b/utils.go index 04ae8fa..a107379 100644 --- a/utils.go +++ b/utils.go @@ -4,6 +4,7 @@ import ( "fmt" "github.com/tidwall/gjson" "net/url" + "os" "strings" "time" ) @@ -30,7 +31,7 @@ func ParseUrl(raw string) (string, error) { prehost := u.Host - u.Host = "hyperpipe-proxy.onrender.com" + u.Host = os.Getenv("HYP_PROXY") q := u.Query() q.Set("host", prehost) u.RawQuery = q.Encode()