1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

Bind to localhost.

This commit is contained in:
Ferdinand Mütsch 2019-05-19 22:30:12 +02:00
parent 642d277cff
commit d803e818bb

View File

@ -104,7 +104,7 @@ func main() {
)) ))
// Listen HTTP // Listen HTTP
portString := ":" + strconv.Itoa(config.Port) portString := "127.0.0.1:" + strconv.Itoa(config.Port)
s := &http.Server{ s := &http.Server{
Handler: router, Handler: router,
Addr: portString, Addr: portString,