From fc684125ccc4773398e5e08625f8526c08d3cb0d Mon Sep 17 00:00:00 2001 From: nxshock Date: Sun, 27 Nov 2022 14:31:06 +0500 Subject: [PATCH] Remove hardcoded host name --- handlers.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/handlers.go b/handlers.go index 92d3b32..a220010 100644 --- a/handlers.go +++ b/handlers.go @@ -48,9 +48,7 @@ func handlePlayer(w http.ResponseWriter, r *http.Request) { var data []J for _, track := range tracks { - host := "music.nxshock.me" - - u, _ := url.Parse(fmt.Sprintf("https://%s/stream", host)) + u, _ := url.Parse("stream") q := make(url.Values) q.Add("url", track.Url) u.RawQuery = q.Encode()