diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2019-05-28 09:29:43 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2019-05-28 09:29:43 +0200 |
| commit | 1874d48758875482be85005bc3b7734bef4e2d35 (patch) | |
| tree | 6a89e7b498c3b8bdd70bc01d74922a0dae880f72 | |
| parent | 9310fd57d41e334991eb8eb66038cf3071300dc4 (diff) | |
| parent | 20445a0c118e3eea6db44563372cac6a82c7abe6 (diff) | |
| download | mullvadvpn-1874d48758875482be85005bc3b7734bef4e2d35.tar.xz mullvadvpn-1874d48758875482be85005bc3b7734bef4e2d35.zip | |
Merge branch 'silence-relay-downloads'
| -rw-r--r-- | mullvad-daemon/src/relays.rs | 9 | ||||
| -rw-r--r-- | talpid-core/src/firewall/mod.rs | 2 |
2 files changed, 3 insertions, 8 deletions
diff --git a/mullvad-daemon/src/relays.rs b/mullvad-daemon/src/relays.rs index f77dca1bec..955d577994 100644 --- a/mullvad-daemon/src/relays.rs +++ b/mullvad-daemon/src/relays.rs @@ -34,7 +34,7 @@ const DOWNLOAD_TIMEOUT: Duration = Duration::from_secs(15); /// How often the updater should wake up to check the cache of the in-memory cache of relays. /// This check is very cheap. The only reason to not have it very often is because if downloading /// constantly fails it will try very often and fill the logs etc. -const UPDATE_CHECK_INTERVAL: Duration = Duration::from_secs(60 * 2); +const UPDATE_CHECK_INTERVAL: Duration = Duration::from_secs(60 * 5); /// How old the cached relays need to be to trigger an update const UPDATE_INTERVAL: Duration = Duration::from_secs(3600); @@ -642,10 +642,7 @@ impl RelayListUpdater { if self.should_update() { match self.update() { Ok(()) => info!("Updated list of relays"), - Err(error) => error!( - "{}", - error.display_chain_with_msg("Failed to update list of relays") - ), + Err(error) => error!("{}", error.display_chain()), } } } @@ -695,8 +692,6 @@ impl RelayListUpdater { } fn download_relay_list(&mut self) -> Result<RelayList, Error> { - info!("Downloading list of relays..."); - let download_future = self.rpc_client.relay_list_v2().map_err(Error::Download); let relay_list = Timer::default() .timeout(download_future, DOWNLOAD_TIMEOUT) diff --git a/talpid-core/src/firewall/mod.rs b/talpid-core/src/firewall/mod.rs index 1480392b18..0ed21fd6be 100644 --- a/talpid-core/src/firewall/mod.rs +++ b/talpid-core/src/firewall/mod.rs @@ -158,7 +158,7 @@ impl fmt::Display for FirewallPolicy { allow_lan, } => write!( f, - "Connected to {} over \"{}\" (ip: {}, v4 gw: {}, v6 gw; {:?}), {} LAN", + "Connected to {} over \"{}\" (ip: {}, v4 gw: {}, v6 gw: {:?}), {} LAN", peer_endpoint, tunnel.interface, tunnel |
