This commit is contained in:
Alex 2023-03-09 12:13:41 +01:00
parent 298a01d710
commit ca486f05ca
1 changed files with 2 additions and 1 deletions

View File

@ -379,7 +379,8 @@ impl State {
}
}
endpoints.sort();
if let Some(endpoint) = endpoints.get(i % endpoints.len()) {
if !endpoints.is_empty() {
let endpoint = endpoints[i % endpoints.len()];
info!("Configure {} with endpoint {}", peer.pubkey, endpoint.0);
Command::new("wg")
.args([