[BREAKING]: Proxy is now set as env variable (HYP_PROXY)

This commit is contained in:
Shiny Nematoda
2022-12-13 07:28:04 +00:00
parent 8774ae81fc
commit 3e5fb144ae
+2 -1
View File
@@ -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()