mirror of
https://github.com/rustdesk/rustdesk-server.git
synced 2026-08-27 04:28:08 +00:00
fix more UDP reflection/amplification
This commit is contained in:
@@ -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