forked from quic-go/quic-go
disable address validation by default
We should provide safe defaults. Since we implement the 3x amplification limit, disabling address validation is not unsafe, and will save 1 RTT for every handshake for applications that don't explicitely configure Retries.
This commit is contained in:
@@ -344,7 +344,6 @@ var _ = Describe("Handshake tests", func() {
|
||||
}
|
||||
|
||||
BeforeEach(func() {
|
||||
serverConfig.RequireAddressValidation = func(net.Addr) bool { return false }
|
||||
var err error
|
||||
// start the server, but don't call Accept
|
||||
server, err = quic.ListenAddr("localhost:0", getTLSConfig(), serverConfig)
|
||||
@@ -474,8 +473,6 @@ var _ = Describe("Handshake tests", func() {
|
||||
|
||||
Context("using tokens", func() {
|
||||
It("uses tokens provided in NEW_TOKEN frames", func() {
|
||||
serverConfig.RequireAddressValidation = func(net.Addr) bool { return false }
|
||||
|
||||
server, err := quic.ListenAddr("localhost:0", getTLSConfig(), serverConfig)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user