From 62821d5bdf57058fd0a3af586fb6efd3665c2f90 Mon Sep 17 00:00:00 2001 From: Jake McGinty Date: Tue, 14 Sep 2021 17:56:08 +0900 Subject: [PATCH] client: update hosts even when you're the only peer on the network Fixes #144 --- client/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/main.rs b/client/src/main.rs index 2d2884a..b0a314f 100644 --- a/client/src/main.rs +++ b/client/src/main.rs @@ -531,7 +531,7 @@ fn fetch( .map(PeerConfigBuilder::from) .collect::>(); - if !updates.is_empty() { + if !updates.is_empty() || !interface_up { DeviceUpdate::new() .add_peers(&updates) .apply(interface, network.backend)