3 Commits

Author SHA1 Message Date
Slava-Shchipunov
8591f4fe4e Merge ec3655a8e9 into 3f069118ca 2024-08-17 15:41:36 +00:00
Slava-Shchipunov
ec3655a8e9 refactor: remove DNS AWG settings (#3) 2024-08-17 22:41:32 +07:00
itdoginfo
3f069118ca Remove pppoe check 2024-08-12 07:39:20 +03:00
2 changed files with 0 additions and 11 deletions

View File

@@ -94,11 +94,6 @@ if curl -6 -s https://ifconfig.io | egrep -q "(::)?[0-9a-fA-F]{1,4}(::?[0-9a-fA-
checkpoint_false "IPv6 detected. This script does not currently work with IPv6"
fi
# PPPoE
if uci show network.wan.proto | grep -q "pppoe"; then
checkpoint_false "PPPoE is used. That could be a problem"
fi
# Tunnels
WIREGUARD=$(opkg list-installed | grep -c wireguard-tools )
if [ $WIREGUARD -eq 1 ]; then

View File

@@ -331,8 +331,6 @@ EOF
echo "This IP is not valid. Please repeat"
fi
done
read -r -p "Enter DNS servers separated by comma (DNS from [Interface]):"$'\n' AWG_DNS
read -r -p "Enter Jc value (from [Interface]):"$'\n' AWG_JC
read -r -p "Enter Jmin value (from [Interface]):"$'\n' AWG_JMIN
@@ -360,10 +358,6 @@ EOF
uci set network.awg0.listen_port='51820'
uci set network.awg0.addresses=$AWG_IP
for DNS in $(echo $AWG_DNS | tr ',' ' '); do
uci add_list network.awg0.dns=$DNS
done
uci set network.awg0.awg_jc=$AWG_JC
uci set network.awg0.awg_jmin=$AWG_JMIN
uci set network.awg0.awg_jmax=$AWG_JMAX