fix: removed localhost from server hostname

This commit is contained in:
Florian Sylvain
2023-12-04 16:28:13 +01:00
parent 411adc02b0
commit 2805425317
+2 -2
View File
@@ -41,7 +41,7 @@ func InitServer() *chi.Mux {
} }
func StartServer(router *chi.Mux) error { func StartServer(router *chi.Mux) error {
fmt.Println("Server starting on http://localhost:" + os.Getenv("PORT")) fmt.Println("Server starting on :" + os.Getenv("PORT"))
err := http.ListenAndServe("localhost:"+os.Getenv("PORT"), router) err := http.ListenAndServe(":"+os.Getenv("PORT"), router)
return err return err
} }