diff options
author | Jake McGinty <me@jake.su> | 2018-04-02 00:48:11 -0700 |
---|---|---|
committer | Jake McGinty <me@jake.su> | 2018-04-02 00:48:11 -0700 |
commit | 2c6d8edd168ff7f7f8ee085658540518ca99aca1 (patch) | |
tree | 9c0807ac59be6b74587b9f1b89d428beaf112ec5 /tools | |
parent | clippy: remove unnecessary iter() (diff) | |
download | wireguard-rs-2c6d8edd168ff7f7f8ee085658540518ca99aca1.tar.xz wireguard-rs-2c6d8edd168ff7f7f8ee085658540518ca99aca1.zip |
config: return error when trying to remove nonexistent peer
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/wg-quick.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/wg-quick.bash b/tools/wg-quick.bash index 562b138..a55bdf1 100755 --- a/tools/wg-quick.bash +++ b/tools/wg-quick.bash @@ -133,7 +133,7 @@ add_route() { if [[ -n $TABLE && $TABLE != auto ]]; then echo "add to table not supported" - elif [[ $1 == */0 ]]; then + elif [[ $1 == */0 ]]; then # TODO add default routes for ipv4/ipv6 separately. right now it overlaps and causes 'splosions. add_default "$1" else cmd route add "$1" "$ip" |