tun2: log when tcp/kcp listeners are up

This commit is contained in:
Cadey Ratio 2017-03-26 13:14:05 -07:00
parent 5fe4d2ea06
commit 8638fe9bcc
1 changed files with 10 additions and 0 deletions

View File

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