diff options
author | Alex Auvolat <alex@adnab.me> | 2023-04-04 19:06:33 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-04-04 19:06:33 +0200 |
commit | f410230240b270ec01cfbf0002cbe9d3849eb03b (patch) | |
tree | 7118b6281feaf23f5f30832ab2f997ea72902308 /src/config/options_test.rs | |
parent | b3f76f272abab8695b4406c6f0addcb58253c89d (diff) | |
download | diplonat-f410230240b270ec01cfbf0002cbe9d3849eb03b.tar.gz diplonat-f410230240b270ec01cfbf0002cbe9d3849eb03b.zip |
parse private_ip earlier
Diffstat (limited to 'src/config/options_test.rs')
-rw-r--r-- | src/config/options_test.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config/options_test.rs b/src/config/options_test.rs index 655fb01..8e05c90 100644 --- a/src/config/options_test.rs +++ b/src/config/options_test.rs @@ -26,7 +26,7 @@ fn all_valid_options() -> HashMap<String, String> { ); opts.insert( "DIPLONAT_PRIVATE_IP".to_string(), - "172.123.43.555".to_string(), + "172.123.43.55".to_string(), ); opts.insert("DIPLONAT_REFRESH_TIME".to_string(), "10".to_string()); opts.insert( @@ -118,7 +118,7 @@ fn ok_from_iter_all_valid_options() { ); assert_eq!(rt_config.firewall.refresh_time, refresh_time); assert_eq!( - &rt_config.igd.private_ip.unwrap(), + &rt_config.igd.private_ip.unwrap().to_string(), opts.get(&"DIPLONAT_PRIVATE_IP".to_string()).unwrap() ); assert_eq!(rt_config.igd.expiration_time, expiration_time); |