diff --git a/src/wg-quick/darwin.bash b/src/wg-quick/darwin.bash index 8387d85..566cfea 100755 --- a/src/wg-quick/darwin.bash +++ b/src/wg-quick/darwin.bash @@ -107,6 +107,7 @@ add_if() { } del_routes() { + [[ -n $REAL_INTERFACE ]] || return 0 local todelete=( ) destination gateway netif while read -r destination _ _ _ _ netif _; do [[ $netif == "$REAL_INTERFACE" ]] && todelete+=( "$destination" )