|
@@ -223,21 +223,10 @@ if [ "$1" != restart ]; then
|
|
|
wifi_secure=$(ynh_app_setting_get hotspot wifi_secure)
|
|
|
wifi_passphrase=$(ynh_app_setting_get hotspot wifi_passphrase)
|
|
|
ip6_firewall=$(ynh_app_setting_get hotspot ip6_firewall)
|
|
|
+ ip6_dns=$(ynh_app_setting_get hotspot ip6_dns)
|
|
|
ip6_net=$(ynh_app_setting_get hotspot ip6_net)
|
|
|
- dns=$(ynh_app_setting_get hotspot dns)
|
|
|
+ ip4_dns=$(ynh_app_setting_get hotspot ip4_dns)
|
|
|
ip4_nat_prefix=$(ynh_app_setting_get hotspot ip4_nat_prefix)
|
|
|
- ip6_dns=""
|
|
|
- ip4_dns=""
|
|
|
- for ip in $(echo "${dns}" | tr ',' ' '); do
|
|
|
- if [[ "$ip" == *":"* ]]; then
|
|
|
- ip6_dns+="[$ip],"
|
|
|
- else
|
|
|
- ip4_dns+="$ip,"
|
|
|
- fi
|
|
|
- done
|
|
|
- # Remove trailing ,
|
|
|
- ip6_dns="${ip6_dns%%,}"
|
|
|
- ip4_dns="${ip4_dns%%,}"
|
|
|
|
|
|
old_gateway_interface=$(ynh_app_setting_get hotspot gateway_interface)
|
|
|
new_gateway_interface=$(ip route get 1.2.3.4 | awk '{ print $5; }')
|