fix more UDP reflection/amplification
This commit is contained in:
1 parent
70dcfdeb95
commit
109d9a2351
1 file changed
+2
-2
@@ -429,10 +429,10 @@ impl RendezvousServer {
|
||||
// The supported client path sends PunchHoleRequest over TCP/WS.
|
||||
}
|
||||
Some(rendezvous_message::Union::PunchHoleSent(phs)) => {
|
||||
self.handle_hole_sent(phs, addr, Some(socket)).await?;
|
||||
// UDP PunchHoleSent is intentionally unsupported to avoid UDP reflection/amplification
|
||||
}
|
||||
Some(rendezvous_message::Union::LocalAddr(la)) => {
|
||||
self.handle_local_addr(la, addr, Some(socket)).await?;
|
||||
// UDP LocalAddr is intentionally unsupported to avoid UDP reflection/amplification
|
||||
}
|
||||
Some(rendezvous_message::Union::ConfigureUpdate(mut cu)) => {
|
||||
if try_into_v4(addr).ip().is_loopback() && cu.serial > self.inner.serial {
|
||||
|
||||
Reference in new issue
Block a user