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:
parent
c05667cdbb
commit
4e55c61462
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue