route: listen on 0.0.0.0, oops
This commit is contained in:
parent
a7b7102609
commit
7a3414000e
6
main.go
6
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,
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue