diff --git a/wire_g b/wire_g index 310c4db..a31afbc 100755 --- a/wire_g +++ b/wire_g @@ -107,7 +107,8 @@ import_wg(){ kill $lines nmcli connection import type wireguard file $WG_CONF &> ${WG_WDIR}.tmp.txt wg_notify - fi + fi + nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//' &> ${WG_WDIR}onstart.txt fi ;; *) yad --image-on-top --image=${WG_PIC}wg-info.png --height=150 --width=240 \