mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-20 13:01:08 +00:00
Fix install script using IPv6 CIDR notation (#1570)
This commit is contained in:
parent
e9d81fc883
commit
ab1a6d8829
@ -368,8 +368,8 @@ useIPv6dialog() {
|
|||||||
# Determine type of found IPv6 addresses
|
# Determine type of found IPv6 addresses
|
||||||
for i in "${IPV6_ADDRESSES[@]}"; do
|
for i in "${IPV6_ADDRESSES[@]}"; do
|
||||||
result=$(testIPv6 "$i")
|
result=$(testIPv6 "$i")
|
||||||
[[ "${result}" == "ULA" ]] && ULA_ADDRESS="$i"
|
[[ "${result}" == "ULA" ]] && ULA_ADDRESS="${i%/*}"
|
||||||
[[ "${result}" == "GUA" ]] && GUA_ADDRESS="$i"
|
[[ "${result}" == "GUA" ]] && GUA_ADDRESS="${i%/*}"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Determine which address to be used: Prefer ULA over GUA or don't use any if none found
|
# Determine which address to be used: Prefer ULA over GUA or don't use any if none found
|
||||||
|
Loading…
Reference in New Issue
Block a user