tun2: log when tcp/kcp listeners are up
This commit is contained in:
parent
5fe4d2ea06
commit
8638fe9bcc
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue