From 3faeae818717ca47baba777969d73fdb2c0c0012 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sun, 26 Mar 2017 13:15:42 -0700 Subject: [PATCH] tun2: log when listenandserve is called --- lib/tun2/server.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/tun2/server.go b/lib/tun2/server.go index 8786285..58b5601 100644 --- a/lib/tun2/server.go +++ b/lib/tun2/server.go @@ -72,6 +72,10 @@ func NewServer(cfg *ServerConfig) (*Server, error) { } func (s *Server) ListenAndServe() error { + ln.Log(ln.F{ + "action": "listen_and_serve_called", + }) + if s.cfg.TCPAddr != "" { go func() { l, err := tls.Listen("tcp", s.cfg.TCPAddr, s.cfg.TLSConfig)