Browse Source

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 <vincent@systemli.org>
lilik-openwrt-22.03
Nick Hainke 2 years ago
parent
commit
0e416dadd1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      net/wg-installer/common/wg.sh

+ 1
- 1
net/wg-installer/common/wg.sh View File

@ -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


Loading…
Cancel
Save