mirror of
https://github.com/itdoginfo/ansible-openwrt-hirkn.git
synced 2025-12-11 17:44:29 +05:00
refactor: remove DNS AWG settings (#3)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user