1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/adguardhome_ynh.git synced 2024-09-03 18:06:23 +02:00
This commit is contained in:
OniriCorpe 2023-12-30 23:34:00 +01:00
parent 815c087270
commit a46953854d

View file

@ -99,9 +99,9 @@ with open(\"$install_dir/AdGuardHome.yaml\", 'r') as file:
conf_file[\"dns\"][\"bind_hosts\"] = [] conf_file[\"dns\"][\"bind_hosts\"] = []
for ip in \"$ipv4_addr\": for ip in \"$ipv4_addr\":
conf_file[\"dns\"][\"bind_hosts\"].append(\"ip\") conf_file[\"dns\"][\"bind_hosts\"].append(ip)
for ip in \"$ipv6_addr\": for ip in \"$ipv6_addr\":
conf_file[\"dns\"][\"bind_hosts\"].append(\"ip\") conf_file[\"dns\"][\"bind_hosts\"].append(ip)
with open(\"$install_dir/AdGuardHome.yaml\", 'w') as file: with open(\"$install_dir/AdGuardHome.yaml\", 'w') as file:
yaml.dump(conf_file, file) yaml.dump(conf_file, file)