From 0b13431b83b4c6e5130e6ab0d4401977e60414c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ken-H=C3=A5vard=20Lieng?= Date: Sun, 21 May 2017 11:11:16 +0200 Subject: [PATCH] Always listen on port 1337 in dev mode since the client expects it --- server/server.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/server.go b/server/server.go index 5ce80cad..0712868c 100644 --- a/server/server.go +++ b/server/server.go @@ -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))) }