freckie

Update

...@@ -71,7 +71,8 @@ func main() { ...@@ -71,7 +71,8 @@ func main() {
71 if cfg.Server.LocalMode { 71 if cfg.Server.LocalMode {
72 handler := cors.AllowAll().Handler(router) 72 handler := cors.AllowAll().Handler(router)
73 hs := make(HostSwitch) 73 hs := make(HostSwitch)
74 - hs[cfg.Server.Host+":"+cfg.Server.Port] 74 + hostname := fmt.Sprintf("%s:%d", cfg.Server.Host, cfg.Server.Port)
75 + hs[hostname] = handler
75 76
76 // Start Server in Local Mode 77 // Start Server in Local Mode
77 log.Println("[Local Mode] Starting HTTP API Server on port", portStr) 78 log.Println("[Local Mode] Starting HTTP API Server on port", portStr)
......