diff options
Diffstat (limited to 'net/iproute2.sh')
-rw-r--r-- | net/iproute2.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/iproute2.sh b/net/iproute2.sh index 693efe01..bb52e983 100644 --- a/net/iproute2.sh +++ b/net/iproute2.sh @@ -138,7 +138,7 @@ _add_address() # figure out the broadcast address if it is not specified # This must NOT be set for IPv6 addresses - if [ "${address/:}" = "${address}" ]; then + if [ "${address#*:}" = "${address}" ]; then [ -z "$broadcast" ] && broadcast="+" elif [ -n "$broadcast" ]; then eerror "Broadcast keywords are not valid with IPv6 addresses" |