diff --git a/client/src/main.rs b/client/src/main.rs index 8ec5f50..56cd9a4 100644 --- a/client/src/main.rs +++ b/client/src/main.rs @@ -284,7 +284,10 @@ fn install( let target_conf = CLIENT_CONFIG_DIR.join(&iface).with_extension("conf"); if target_conf.exists() { - bail!("An interface with this name already exists in innernet."); + bail!("An existing innernet network with the name \"{}\" already exists.", iface); + } + if Device::list(network.backend)?.iter().any(|name| name.as_str_lossy() == iface) { + bail!("An existing WireGuard interface with the name \"{}\" already exists.", iface); } let iface = iface.parse()?;