mirror of
https://github.com/nxshock/promodj.git
synced 2024-11-27 03:01:01 +05:00
Remove hardcoded host name
This commit is contained in:
parent
f7c03b0110
commit
fc684125cc
@ -48,9 +48,7 @@ func handlePlayer(w http.ResponseWriter, r *http.Request) {
|
|||||||
var data []J
|
var data []J
|
||||||
|
|
||||||
for _, track := range tracks {
|
for _, track := range tracks {
|
||||||
host := "music.nxshock.me"
|
u, _ := url.Parse("stream")
|
||||||
|
|
||||||
u, _ := url.Parse(fmt.Sprintf("https://%s/stream", host))
|
|
||||||
q := make(url.Values)
|
q := make(url.Values)
|
||||||
q.Add("url", track.Url)
|
q.Add("url", track.Url)
|
||||||
u.RawQuery = q.Encode()
|
u.RawQuery = q.Encode()
|
||||||
|
Loading…
Reference in New Issue
Block a user