mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Fix getting IP address in the presence of similar subnets
Change was suggested by @computergeek125 in #2387 Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
parent
e3d9cf0ac1
commit
466fd79c66
1 changed files with 1 additions and 1 deletions
|
@ -525,7 +525,7 @@ find_IPv4_information() {
|
|||
fi
|
||||
|
||||
# Append the CIDR notation to the IP address, if valid_ip fails this should return 127.0.0.1/8
|
||||
IPV4_ADDRESS=$(ip -oneline -family inet address show | grep "${IPv4bare}" | awk '{print $4}' | awk 'END {print}')
|
||||
IPV4_ADDRESS=$(ip -oneline -family inet address show | grep "${IPv4bare}/" | awk '{print $4}' | awk 'END {print}')
|
||||
}
|
||||
|
||||
# Get available interfaces that are UP
|
||||
|
|
Loading…
Reference in a new issue