1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/hotspot_ynh.git synced 2024-09-03 19:25:53 +02:00

fix dns config getter

This commit is contained in:
HgO 2023-08-20 16:31:09 +02:00
parent c05667cdbb
commit 4e55c61462

View file

@ -92,6 +92,14 @@ EOF
echo "value: '$(ynh_app_setting_get $app wifi_device)'"
}
get__dns() {
ip6_dns=$(ynh_app_setting_get $app ip6_dns | tr -d '[' | tr -d ']')
ip4_dns=$(ynh_app_setting_get $app ip4_dns)
echo "value: ${ip4_dns},${ip6_dns}"
}
#=================================================
# SPECIFIC VALIDATORS FOR TOML SHORT KEYS
#=================================================