Skip to content

Commit

Permalink
Fix interfaces with correctly configured multiple addresses (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored May 20, 2021
1 parent a41a8e5 commit d81f0dc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions adguard/rootfs/etc/cont-init.d/adguard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,15 @@ fi

# Get IPv4 address
addresses=$(bashio::network.ipv4_address)
hosts+=("${addresses% *}")
hosts+=("${addresses%/*}")

# Get IPv6 address
addresses=$(bashio::network.ipv6_address)
hosts+=("${addresses% *}")
hosts+=("${addresses%/*}")

# Get "hassio" network interface
hosts+=($(bashio::addon.ip_address))
addresses=$(bashio::addon.ip_address)
hosts+=("${addresses%/*}")

# Add interface to bind to, to AdGuard Home
yq delete --inplace "${CONFIG}" dns.bind_hosts
Expand Down

0 comments on commit d81f0dc

Please sign in to comment.