forked from quic-go/quic-go
Disable anti-amplification limit by address validation token (#3326)
This commit is contained in:
@@ -26,6 +26,7 @@ type Token struct {
|
||||
RetrySrcConnectionID protocol.ConnectionID
|
||||
}
|
||||
|
||||
// ValidateRemoteAddr validates the address, but does not check expiration
|
||||
func (t *Token) ValidateRemoteAddr(addr net.Addr) bool {
|
||||
return bytes.Equal(encodeRemoteAddr(addr), t.encodedRemoteAddr)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user