dnk: use ip route instead of route

This commit is contained in:
Daniil Firsov 2022-12-13 21:04:42 +03:00
parent 9754a0609f
commit b1cb3d2b02

View File

@ -33,7 +33,7 @@ HOME_DIR="/etc/wireguard"
SERVER_NAME="wg-server" SERVER_NAME="wg-server"
SERVER_IP_PREFIX="10.10.10" SERVER_IP_PREFIX="10.10.10"
SERVER_PORT=39547 SERVER_PORT=39547
SERVER_INTERFACE=$(route | grep default | awk '{print $8}') SERVER_INTERFACE=$(ip route | grep default | awk '{print $8}')
while getopts ":icdpqhLUu:I:s:" opt; do while getopts ":icdpqhLUu:I:s:" opt; do
case $opt in case $opt in