1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/adguardhome_ynh.git synced 2024-09-03 18:06:23 +02:00

use split() to split $ipvx_addr variables

This commit is contained in:
OniriCorpe 2023-12-30 23:44:35 +01:00
parent 12e407f08b
commit 3c60a815d7

View file

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