diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-05-23 15:38:08 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-05-23 15:38:08 +0200 |
commit | 3e2ea02d62e0d8fd77e46e6dc5e0318584fb16dc (patch) | |
tree | 9b000795b0d624f8e11e5c44660bfd55142f00a5 /src/diplonat.rs | |
parent | 941942aedae347a5aeb2a4c63c3443603dd26bbb (diff) | |
download | diplonat-3e2ea02d62e0d8fd77e46e6dc5e0318584fb16dc.tar.gz diplonat-3e2ea02d62e0d8fd77e46e6dc5e0318584fb16dc.zip |
Working IGD
Diffstat (limited to 'src/diplonat.rs')
-rw-r--r-- | src/diplonat.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/diplonat.rs b/src/diplonat.rs index 565c567..1be00f7 100644 --- a/src/diplonat.rs +++ b/src/diplonat.rs @@ -14,7 +14,12 @@ impl Diplonat { pub async fn new() -> Result<Self> { let env = Environment::new()?; let ca = ConsulActor::new(&env.consul_url, &env.consul_node_name); - let ia = IgdActor::new(&ca.rx_open_ports).await?; + let ia = IgdActor::new( + &env.private_ip, + env.refresh_time, + env.expiration_time, + &ca.rx_open_ports + ).await?; let ctx = Self { consul: ca, |