UDP server should filter addresses by forbidden_ip

This commit is contained in:
zonyitoo
2020-01-11 15:10:59 +08:00
parent 430e0b9562
commit fccadbbc44
+1 -1
View File
@@ -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!(