diff --git a/wire_g b/wire_g index 303ed2f..6912d61 100755 --- a/wire_g +++ b/wire_g @@ -91,14 +91,6 @@ import_wg(){ *_*.conf) if grep -i 'PEER\|PublicKey' $wgconf > /dev/null && grep -i 'Interface\|PrivateKey' $wgconf > /dev/null then - for wgconf in $(cat ${wg_wdir}.tunnel.txt) - do - yad --window-icon=${wg_pic}wg-stop.png \ - --image=${wg_pic}wg-info.png --button "OK" \ - --title=$"Wire-G" --image-on-top --borders=8 \ - --text-align=center --buttons-layout=center \ - --text $"Tunnel name already exists." - done active=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//') if [[ -n $active ]] then