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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user