diff --git a/.local/bin/scripts/vpn b/.local/bin/scripts/vpn index dc9b88e..3cfe8b8 100755 --- a/.local/bin/scripts/vpn +++ b/.local/bin/scripts/vpn @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -x PIPE="/var/run/vpnd.sock" send_cmd() { @@ -19,11 +19,11 @@ if resolvectl domain "$DEFAULT_LINK" | grep -q 'wzray.com'; then IS_LOCAL=1 fi -IFNAME="rix" +IFNAME='ext' while [ "$#" -gt 0 ]; do case "$1" in - 'm'|'msk') IFNAME='msk';; + 'i'|'int') IFNAME='int';; '-v'|'--verbose') VERBOSE=1;; *) echo "Wrong argument!"; exit 1;; esac