mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-11-17 16:17:38 +00:00
UDP server should filter addresses by forbidden_ip
This commit is contained in:
@@ -163,7 +163,7 @@ impl UdpAssociation {
|
||||
);
|
||||
try_timeout(remote_udp.send_to(body, remote_addr), Some(timeout)).await?
|
||||
}
|
||||
Address::DomainNameAddress(ref dname, port) => lookup_then!(context, dname, port, false, |remote_addr| {
|
||||
Address::DomainNameAddress(ref dname, port) => lookup_then!(context, dname, port, true, |remote_addr| {
|
||||
match try_timeout(remote_udp.send_to(body, &remote_addr), Some(timeout)).await {
|
||||
Ok(l) => {
|
||||
debug!(
|
||||
|
||||
Reference in New Issue
Block a user