mirror of
https://github.com/YunoHost-Apps/adguardhome_ynh.git
synced 2024-09-03 18:06:23 +02:00
update IPs each time the function update_config is called
This commit is contained in:
parent
f57edf01d5
commit
09287bf217
1 changed files with 7 additions and 7 deletions
|
@ -56,13 +56,13 @@ with open(\"$install_dir/AdGuardHome.yaml\", 'r') as file:
|
||||||
|
|
||||||
need_file_update = False
|
need_file_update = False
|
||||||
|
|
||||||
if \"0.0.0.0\" in conf_file[\"dns\"][\"bind_hosts\"]:
|
conf_file[\"dns\"][\"bind_hosts\"] = []
|
||||||
conf_file[\"dns\"][\"bind_hosts\"] = []
|
if \"$ipv4_addr\":
|
||||||
if \"$ipv4_addr\":
|
conf_file[\"dns\"][\"bind_hosts\"].append(\"$ipv4_addr\")
|
||||||
conf_file[\"dns\"][\"bind_hosts\"].append(\"$ipv4_addr\")
|
need_file_update = True
|
||||||
if \"$ipv6_addr\":
|
if \"$ipv6_addr\":
|
||||||
conf_file[\"dns\"][\"bind_hosts\"].append(\"$ipv6_addr\")
|
conf_file[\"dns\"][\"bind_hosts\"].append(\"$ipv6_addr\")
|
||||||
need_file_update = True
|
need_file_update = True
|
||||||
|
|
||||||
if need_file_update:
|
if need_file_update:
|
||||||
with open(\"$install_dir/AdGuardHome.yaml\", 'w') as file:
|
with open(\"$install_dir/AdGuardHome.yaml\", 'w') as file:
|
||||||
|
|
Loading…
Add table
Reference in a new issue