mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-10-01 01:26:08 -04:00
fix symmetric nat detection
This commit is contained in:
parent
cf56d669ba
commit
9b7380c81c
@ -463,8 +463,8 @@ impl DiscoveryContext {
|
|||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
||||||
// If we have two different external addresses, then this is a symmetric NAT
|
// If we have two different external address/port combinations, then this is a symmetric NAT
|
||||||
if external_2.address.address() != external_1.address.address() {
|
if external_2.address != external_1.address {
|
||||||
let this = self.clone();
|
let this = self.clone();
|
||||||
let do_symmetric_nat_fut: SendPinBoxFuture<Option<DetectionResult>> =
|
let do_symmetric_nat_fut: SendPinBoxFuture<Option<DetectionResult>> =
|
||||||
Box::pin(async move {
|
Box::pin(async move {
|
||||||
|
Loading…
Reference in New Issue
Block a user