aboutsummaryrefslogtreecommitdiff
path: root/src/igd_actor.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-04-04 18:46:14 +0200
committerAlex Auvolat <alex@adnab.me>2023-04-04 18:46:14 +0200
commit615f926618471998f85ee184b378b1128340367b (patch)
treebe9b5d5da3e844460a533bea9fefd452892a7f32 /src/igd_actor.rs
parente64be9e8816b9bd5d3d787d1d5d57d460ae37569 (diff)
downloaddiplonat-615f926618471998f85ee184b378b1128340367b.tar.gz
diplonat-615f926618471998f85ee184b378b1128340367b.zip
Add STUN actor that saves autodiscovered IPv4/IPv6 to Consul
Diffstat (limited to 'src/igd_actor.rs')
-rw-r--r--src/igd_actor.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/igd_actor.rs b/src/igd_actor.rs
index d32f5dc..68f4217 100644
--- a/src/igd_actor.rs
+++ b/src/igd_actor.rs
@@ -46,6 +46,7 @@ impl IgdActor {
gw.addr.ip()
),
};
+ #[allow(unused_parens)]
let public_ip = get_if_addrs::get_if_addrs()?
.into_iter()
.map(|i| i.addr.ip())