summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--mullvad-daemon/src/main.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/mullvad-daemon/src/main.rs b/mullvad-daemon/src/main.rs
index 9ed938649e..b82430098e 100644
--- a/mullvad-daemon/src/main.rs
+++ b/mullvad-daemon/src/main.rs
@@ -335,9 +335,13 @@ impl Daemon {
debug!("New tunnel state: {:?}", tunnel_state);
- if tunnel_state == Disconnected {
- self.state.disconnected();
- self.current_relay = None;
+ match tunnel_state {
+ Disconnected => {
+ self.state.disconnected();
+ self.current_relay = None;
+ }
+ Blocked(ref reason) => info!("Blocking all network connections, reason: {}", reason),
+ _ => {}
}
self.tunnel_state = tunnel_state;