route: listen on 0.0.0.0, oops

This commit is contained in:
Cadey Ratio 2017-01-22 10:22:36 -08:00
parent a7b7102609
commit 7a3414000e
1 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ func main() {
go setupACME(s) 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 { if err != nil {
log.Fatal(err) log.Fatal(err)
} }
@ -61,7 +61,7 @@ func main() {
hs := &http.Server{ hs := &http.Server{
Handler: s, Handler: s,
Addr: "127.0.0.1:" + *webPort, Addr: "0.0.0.0:" + *webPort,
} }
hs.Serve(l) hs.Serve(l)
@ -79,7 +79,7 @@ func setupACME(s *server.Server) {
hs := &http.Server{ hs := &http.Server{
Handler: s, Handler: s,
Addr: "127.0.0.1:" + *sslPort, Addr: "0.0.0.0:" + *sslPort,
TLSConfig: &tls.Config{ TLSConfig: &tls.Config{
GetCertificate: m.GetCertificate, GetCertificate: m.GetCertificate,
}, },