fix symmetric nat detection

This commit is contained in:
Christien Rioux 2024-08-06 18:13:44 -07:00
parent cf56d669ba
commit 9b7380c81c

View File

@ -463,8 +463,8 @@ impl DiscoveryContext {
)
};
// If we have two different external addresses, then this is a symmetric NAT
if external_2.address.address() != external_1.address.address() {
// If we have two different external address/port combinations, then this is a symmetric NAT
if external_2.address != external_1.address {
let this = self.clone();
let do_symmetric_nat_fut: SendPinBoxFuture<Option<DetectionResult>> =
Box::pin(async move {