doppeltunnel 4

This commit is contained in:
Désiré Werner Menrath 2023-11-09 17:28:22 +01:00
parent c2afbc414f
commit b1a4a0a273

3
wire_g
View File

@ -91,8 +91,7 @@ import_wg(){
*_*.conf) if grep -i 'PEER\|PublicKey' $wgconf > /dev/null && grep -i 'Interface\|PrivateKey' $wgconf > /dev/null *_*.conf) if grep -i 'PEER\|PublicKey' $wgconf > /dev/null && grep -i 'Interface\|PrivateKey' $wgconf > /dev/null
then then
IFS=$'\n' lines=( $(cat ${wg_wdir}.tunnel.txt) ) for wgconf in $(cat ${wg_wdir}.tunnel.txt)
for wgconf in "${lines[@]}"
do do
yad --window-icon=${wg_pic}wg-stop.png \ yad --window-icon=${wg_pic}wg-stop.png \
--image=${wg_pic}wg-info.png --button "OK" \ --image=${wg_pic}wg-info.png --button "OK" \