From: Nick Hainke Date: Sun, 9 Jan 2022 12:13:47 +0000 (+0100) Subject: wg-installer: fix typo in cleanup function X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=0e416dadd1281878388445007e45df741c387335;p=openwrt-packages.git wg-installer: fix typo in cleanup function The delete variable was misspelled leading to devices always being removed although they had connected neighbors. Signed-off-by: Nick Hainke --- diff --git a/net/wg-installer/common/wg.sh b/net/wg-installer/common/wg.sh index 6a9ac9c65..c6d02d92c 100644 --- a/net/wg-installer/common/wg.sh +++ b/net/wg-installer/common/wg.sh @@ -32,7 +32,7 @@ check_wg_neighbors() { delete=1 for ip in $ips; do if [ $ip != $linklocal ] && [ $(owipcalc $ip linklocal) -eq 1 ]; then - delte=0 + delete=0 break fi done