diff options
| author | Shulhan <ms@kilabit.info> | 2024-03-08 19:36:59 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-03-08 19:36:59 +0700 |
| commit | 8511447a1a628772e46a3ddb787386a03302a417 (patch) | |
| tree | 69181217cb83af05cec8743789b5014a8e310aa4 | |
| parent | b09ff8ec7a6222bcd7ef74e52b90e50b6f5ce111 (diff) | |
| download | bin.sh-8511447a1a628772e46a3ddb787386a03302a417.tar.xz | |
bin/wg-activate: turning down all connection before activating the new one
| -rwxr-xr-x | bin/wg-activate.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/wg-activate.sh b/bin/wg-activate.sh index 90dcff3..ba8bad8 100755 --- a/bin/wg-activate.sh +++ b/bin/wg-activate.sh @@ -28,9 +28,8 @@ for f in $confs; do got=$(basename "${f%.conf}") if [[ "$exp" == "$got" ]]; then activate=$exp - else - downs+=("$got") fi + downs+=("$got") done if [[ -z "$activate" ]]; then |
