diff --git a/Shorewall/compiler b/Shorewall/compiler index 51ab207f5..43e916b83 100755 --- a/Shorewall/compiler +++ b/Shorewall/compiler @@ -6492,7 +6492,7 @@ __EOF__ __EOF__ done - if [ -n "$addresses" -a "$addresses" != detect ]; then + if [ -n "$addresses" ]; then message=" To $destination $displayproto from \$network through ${interface} using $addresses" else message=" To $destination $displayproto from \$network through ${interface}" diff --git a/Shorewall/functions b/Shorewall/functions index 4c57e8a1b..736c66e3d 100644 --- a/Shorewall/functions +++ b/Shorewall/functions @@ -1136,7 +1136,7 @@ find_first_interface_address_if_any() # $1 = interface # find_interface_addresses() # $1 = interface { - ip -f inet addr show $1 | grep inet\ | sed 's/inet //;s/\/.*//;s/ peer.*//' + ip -f inet addr show $1 | grep inet\ | sed 's/\s*inet //;s/\/.*//;s/ peer.*//' } #