1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-06-20 18:00:02 -04:00

write listen error to log

This commit is contained in:
Darien Raymond
2018-03-21 23:38:49 +01:00
parent 169b901c2d
commit 3ff570a050

View File

@@ -102,7 +102,12 @@ func Listen(ctx context.Context, address net.Address, port net.Port, handler int
}
listener.server = server
go server.ListenAndServeTLS("", "")
go func() {
err := server.ListenAndServeTLS("", "")
if err != nil {
newError("stoping serving TLS").Base(err).WriteToLog()
}
}()
return listener, nil
}