diff options
author | Hristo Venev <hristo@venev.name> | 2019-09-28 16:20:06 +0000 |
---|---|---|
committer | Hristo Venev <hristo@venev.name> | 2019-09-28 16:20:43 +0000 |
commit | 3a5552509439612accf579becc7cb85a596bd466 (patch) | |
tree | cbb6af2c4217e1ac6c57f904c9de2976e72b052d /src/main.rs | |
parent | b20d7f8b89f5e4b065b0a3fee52ece8db6f99a74 (diff) |
PeerConfig -> GlobalConfig
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index cfd9c82..438cb3c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -77,13 +77,13 @@ fn cli_config(args: &mut impl Iterator<Item = OsString>) -> Option<config::Confi if key == "min_keepalive" { arg = args.next()?; let arg = arg.to_str()?; - cfg.peer_config.min_keepalive = u32::from_str(arg).ok()?; + cfg.global.min_keepalive = u32::from_str(arg).ok()?; continue; } if key == "max_keepalive" { arg = args.next()?; let arg = arg.to_str()?; - cfg.peer_config.max_keepalive = u32::from_str(arg).ok()?; + cfg.global.max_keepalive = u32::from_str(arg).ok()?; continue; } if key == "refresh_sec" { |