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:
parent
12e407f08b
commit
3c60a815d7
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue