vpn-install icon indicating copy to clipboard operation
vpn-install copied to clipboard

external IP detection fix

Open Ph0enix777 opened this issue 5 years ago • 0 comments

LOCALIPMASK="$LOCALIP$LOCALMASK"

IP=$(ip addr | grep 'inet' | grep -v inet6 | grep -vE '127.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}' | grep -o -E '[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}' | head -1)

Ph0enix777 avatar Oct 24 '19 21:10 Ph0enix777