tun2: log when listenandserve is called

This commit is contained in:
Cadey Ratio 2017-03-26 13:15:42 -07:00
parent dbcf69c837
commit 3faeae8187
1 changed files with 4 additions and 0 deletions

View File

@ -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)