From 8638fe9bcc9867075c1176b943b40b56de653898 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sun, 26 Mar 2017 13:14:05 -0700 Subject: [PATCH] tun2: log when tcp/kcp listeners are up --- lib/tun2/server.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/tun2/server.go b/lib/tun2/server.go index 29d568e..8786285 100644 --- a/lib/tun2/server.go +++ b/lib/tun2/server.go @@ -79,6 +79,11 @@ func (s *Server) ListenAndServe() error { panic(err) } + ln.Log(ln.F{ + "action": "tcp+tls_listening", + "addr": l.Addr(), + }) + for { conn, err := l.Accept() if err != nil { @@ -98,6 +103,11 @@ func (s *Server) ListenAndServe() error { panic(err) } + ln.Log(ln.F{ + "action": "kcp+tls_listening", + "addr": l.Addr(), + }) + for { conn, err := l.Accept() if err != nil {