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, },