diff --git a/utils/proxyhook.go b/utils/proxyhook.go index 6f76ce8..ddc2706 100644 --- a/utils/proxyhook.go +++ b/utils/proxyhook.go @@ -3,14 +3,11 @@ package utils import ( "github.com/TicketsBot/GoPanel/config" "net/http" - "os" ) // Twilight's HTTP proxy doesn't support the typical HTTP proxy protocol - instead you send the request directly // to the proxy's host in the URL. This is not how Go's proxy function should be used, but it works :) func ProxyHook(token string, req *http.Request) { - if token == os.Getenv("WORKER_PUBLIC_TOKEN") { - req.URL.Scheme = "http" - req.URL.Host = config.Conf.Bot.ProxyUrl - } + req.URL.Scheme = "http" + req.URL.Host = config.Conf.Bot.ProxyUrl }