client: update hosts even when you're the only peer on the network

Fixes #144
pull/153/head
Jake McGinty 2021-09-14 17:56:08 +09:00
parent dbb499a848
commit 62821d5bdf
1 changed files with 1 additions and 1 deletions

View File

@ -531,7 +531,7 @@ fn fetch(
.map(PeerConfigBuilder::from) .map(PeerConfigBuilder::from)
.collect::<Vec<_>>(); .collect::<Vec<_>>();
if !updates.is_empty() { if !updates.is_empty() || !interface_up {
DeviceUpdate::new() DeviceUpdate::new()
.add_peers(&updates) .add_peers(&updates)
.apply(interface, network.backend) .apply(interface, network.backend)