From 7a3414000efde93af6a5dbef1a9b29ea1b5a175a Mon Sep 17 00:00:00 2001 From: Cadey Dodrill Date: Sun, 22 Jan 2017 10:22:36 -0800 Subject: [PATCH] route: listen on 0.0.0.0, oops --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index ca3ea72..04cd778 100644 --- a/main.go +++ b/main.go @@ -53,7 +53,7 @@ func main() { go setupACME(s) } - l, err := net.Listen("tcp", "127.0.0.1:"+*webPort) + l, err := net.Listen("tcp", "0.0.0.0:"+*webPort) if err != nil { log.Fatal(err) } @@ -61,7 +61,7 @@ func main() { hs := &http.Server{ Handler: s, - Addr: "127.0.0.1:" + *webPort, + Addr: "0.0.0.0:" + *webPort, } hs.Serve(l) @@ -79,7 +79,7 @@ func setupACME(s *server.Server) { hs := &http.Server{ Handler: s, - Addr: "127.0.0.1:" + *sslPort, + Addr: "0.0.0.0:" + *sslPort, TLSConfig: &tls.Config{ GetCertificate: m.GetCertificate, },