tun2: log when listenandserve is called
This commit is contained in:
parent
dbcf69c837
commit
3faeae8187
|
@ -72,6 +72,10 @@ func NewServer(cfg *ServerConfig) (*Server, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Server) ListenAndServe() error {
|
func (s *Server) ListenAndServe() error {
|
||||||
|
ln.Log(ln.F{
|
||||||
|
"action": "listen_and_serve_called",
|
||||||
|
})
|
||||||
|
|
||||||
if s.cfg.TCPAddr != "" {
|
if s.cfg.TCPAddr != "" {
|
||||||
go func() {
|
go func() {
|
||||||
l, err := tls.Listen("tcp", s.cfg.TCPAddr, s.cfg.TLSConfig)
|
l, err := tls.Listen("tcp", s.cfg.TCPAddr, s.cfg.TLSConfig)
|
||||||
|
|
Loading…
Reference in New Issue