This commit is contained in:
John Smith
2022-08-18 19:27:18 -04:00
parent ee0e729a92
commit 568a308c82
3 changed files with 13 additions and 12 deletions
+2 -1
View File
@@ -345,9 +345,10 @@ impl NetworkManager {
// This is so we can preserve the inbound NAT mappings at our router
for did in &dids {
// Do we need to do this ping?
// Check if we have already pinged over this low-level-protocol/address-type/port combo
// We want to ensure we do the bare minimum required here
let pt = did.dial_info.protocol_type();
let at = did.dial_info.address_type();
let needs_ping = if let Some((llpt, port)) =
mapped_port_info.protocol_to_port.get(&(pt, at))
{