diff options
-rw-r--r-- | wg-quick.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wg-quick.bash b/wg-quick.bash index b07037b..49b69f7 100644 --- a/wg-quick.bash +++ b/wg-quick.bash @@ -165,7 +165,7 @@ cmd_up() { } cmd_down() { - [[ -n $(ip link show dev "$INTERFACE" type wireguard 2>/dev/null) ]] || die "\`$INTERFACE' is not a WireGuard interface" + [[ " $(wg show interfaces) " == *" $INTERFACE "* ]] || die "\`$INTERFACE' is not a WireGuard interface" del_if } |