Merge pull request #806 from lucas-clemente/listener-debug-message

print a debug message when the server is started
This commit is contained in:
Marten Seemann
2017-08-29 15:11:46 +07:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -89,6 +89,7 @@ func Listen(conn net.PacketConn, tlsConf *tls.Config, config *Config) (Listener,
errorChan: make(chan struct{}),
}
go s.serve()
utils.Debugf("Listening for %s connections on %s", conn.LocalAddr().Network(), conn.LocalAddr().String())
return s, nil
}

View File

@@ -94,7 +94,7 @@ var _ = Describe("Server", func() {
)
BeforeEach(func() {
conn = &mockPacketConn{}
conn = &mockPacketConn{addr: &net.UDPAddr{}}
config = &Config{Versions: protocol.SupportedVersions}
})