port 0.0.0.0
parent
109d2290cf
commit
4164a1c21d
2
main.go
2
main.go
|
@ -133,7 +133,7 @@ func serveAPI() {
|
||||||
handler := c.Handler(router)
|
handler := c.Handler(router)
|
||||||
|
|
||||||
log.Printf("Server starting on port %s", config.Port)
|
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) {
|
func getImageHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
Loading…
Reference in New Issue