Always listen on port 1337 in dev mode since the client expects it

This commit is contained in:
Ken-Håvard Lieng 2017-05-21 11:11:16 +02:00
parent d96cf68d95
commit 0b13431b83
1 changed files with 3 additions and 0 deletions

View File

@ -87,6 +87,9 @@ func startHTTP() {
log.Fatal("Could not locate SSL certificate or private key") log.Fatal("Could not locate SSL certificate or private key")
} }
} else { } else {
if viper.GetBool("dev") {
port = "1337"
}
log.Println("[HTTP] Listening on port", port) log.Println("[HTTP] Listening on port", port)
log.Fatal(http.ListenAndServe(":"+port, http.HandlerFunc(serve))) log.Fatal(http.ListenAndServe(":"+port, http.HandlerFunc(serve)))
} }