diff options
Diffstat (limited to 'src/config/options.rs')
-rw-r--r-- | src/config/options.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/config/options.rs b/src/config/options.rs index 793838a..08cdd15 100644 --- a/src/config/options.rs +++ b/src/config/options.rs @@ -17,6 +17,8 @@ pub struct ConfigOptsBase { pub expiration_time: Option<u16>, /// Refresh time for IGD and Firewall rules [default: 300] pub refresh_time: Option<u16>, + /// STUN server [default: stun.nextcloud.com:443] + pub stun_server: Option<String>, } /// ACME configuration options @@ -69,7 +71,7 @@ impl ConfigOpts { } // Currently only used in tests - #[allow(dead_code)] + #[cfg(test)] pub fn from_iter<Iter: Clone>(iter: Iter) -> Result<RuntimeConfig> where Iter: IntoIterator<Item = (String, String)>, |