print a debug message when the server is started

This commit is contained in:
Marten Seemann
2017-08-29 11:37:49 +07:00
parent a6719bf417
commit 7ec09d2488
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}
})