mirror of
https://github.com/itdoginfo/ansible-openwrt-hirkn.git
synced 2025-12-30 19:33:35 +05:00
Compare commits
2 Commits
592e590656
...
8591f4fe4e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8591f4fe4e | ||
|
|
ec3655a8e9 |
@@ -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