|
...
|
...
|
@@ -591,7 +591,7 @@ function get_default_host_ip {
|
|
591
|
591
|
host_ip=""
|
|
592
|
592
|
# Find the interface used for the default route
|
|
593
|
593
|
host_ip_iface=${host_ip_iface:-$(ip -f $af route | awk '/default/ {print $5}' | head -1)}
|
|
594
|
|
- local host_ips=$(LC_ALL=C ip -f $af addr show ${host_ip_iface} | awk /$af'/ {split($2,parts,"/"); print parts[1]}')
|
|
|
594
|
+ local host_ips=$(LC_ALL=C ip -f $af addr show ${host_ip_iface} | sed /temporary/d |awk /$af'/ {split($2,parts,"/"); print parts[1]}')
|
|
595
|
595
|
local ip
|
|
596
|
596
|
for ip in $host_ips; do
|
|
597
|
597
|
# Attempt to filter out IP addresses that are part of the fixed and
|