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

Fixes #144
This commit is contained in:
Jake McGinty 2021-09-14 17:56:08 +09:00
parent dbb499a848
commit 62821d5bdf

View file

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