forked from quic-go/quic-go
Merge pull request #806 from lucas-clemente/listener-debug-message
print a debug message when the server is started
This commit is contained in:
@@ -89,6 +89,7 @@ func Listen(conn net.PacketConn, tlsConf *tls.Config, config *Config) (Listener,
|
|||||||
errorChan: make(chan struct{}),
|
errorChan: make(chan struct{}),
|
||||||
}
|
}
|
||||||
go s.serve()
|
go s.serve()
|
||||||
|
utils.Debugf("Listening for %s connections on %s", conn.LocalAddr().Network(), conn.LocalAddr().String())
|
||||||
return s, nil
|
return s, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ var _ = Describe("Server", func() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
BeforeEach(func() {
|
BeforeEach(func() {
|
||||||
conn = &mockPacketConn{}
|
conn = &mockPacketConn{addr: &net.UDPAddr{}}
|
||||||
config = &Config{Versions: protocol.SupportedVersions}
|
config = &Config{Versions: protocol.SupportedVersions}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user