Always listen on port 1337 in dev mode since the client expects it
This commit is contained in:
parent
d96cf68d95
commit
0b13431b83
|
@ -87,6 +87,9 @@ func startHTTP() {
|
|||
log.Fatal("Could not locate SSL certificate or private key")
|
||||
}
|
||||
} else {
|
||||
if viper.GetBool("dev") {
|
||||
port = "1337"
|
||||
}
|
||||
log.Println("[HTTP] Listening on port", port)
|
||||
log.Fatal(http.ListenAndServe(":"+port, http.HandlerFunc(serve)))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue