mirror of
https://codeberg.org/Hyperpipe/hyperpipe-backend
synced 2024-12-06 19:26:30 +01:00
[BREAKING]: Proxy is now set as env variable (HYP_PROXY)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user