|
@@ -183,7 +183,7 @@ func loginHandler(w http.ResponseWriter, r *http.Request) {
|
183
|
183
|
http.Redirect(w, r, "/", http.StatusTemporaryRedirect)
|
184
|
184
|
}
|
185
|
185
|
|
186
|
|
-func webStart(modifiedSongChan chan *SongEntry, spot *spotify.SpotifyClient) {
|
|
186
|
+func webStart(listenAddr string, modifiedSongChan chan *SongEntry, spot *spotify.SpotifyClient) {
|
187
|
187
|
songsChan = modifiedSongChan
|
188
|
188
|
spotifyClient = spot
|
189
|
189
|
|
|
@@ -198,5 +198,5 @@ func webStart(modifiedSongChan chan *SongEntry, spot *spotify.SpotifyClient) {
|
198
|
198
|
mux.HandleFunc("/update", updateHandler)
|
199
|
199
|
mux.HandleFunc("/login", loginHandler)
|
200
|
200
|
|
201
|
|
- http.ListenAndServe("localhost:8080", mux)
|
|
201
|
+ http.ListenAndServe(listenAddr, mux)
|
202
|
202
|
}
|