port 0.0.0.0
This commit is contained in:
2
main.go
2
main.go
@@ -133,7 +133,7 @@ func serveAPI() {
|
||||
handler := c.Handler(router)
|
||||
|
||||
log.Printf("Server starting on port %s", config.Port)
|
||||
log.Fatal(http.ListenAndServe(":"+config.Port, handler))
|
||||
log.Fatal(http.ListenAndServe("0.0.0.0:"+config.Port, handler))
|
||||
}
|
||||
|
||||
func getImageHandler(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
Reference in New Issue
Block a user