Skip to content

Commit

Permalink
πŸš‘ Fix invalid IP address format in bind_hosts (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Aug 12, 2021
1 parent 2cab448 commit d0c8355
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adguard/rootfs/etc/cont-init.d/adguard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ for host in "${hosts[@]}"; do
fi
fi

host="${host}" yq --inplace e \
host="${host%/*}" yq --inplace e \
'.dns.bind_hosts += [env(host)]' "${CONFIG}" \
|| bashio::exit.nok 'Failed updating AdGuardHome host'
done

0 comments on commit d0c8355

Please sign in to comment.