mirror of
https://github.com/itdoginfo/ansible-openwrt-hirkn.git
synced 2026-03-26 20:28:35 +05:00
Compare commits
1 Commits
8591f4fe4e
...
592e590656
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
592e590656 |
@@ -331,6 +331,8 @@ 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
|
||||
@@ -358,6 +360,10 @@ 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