mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-15 19:01:19 +01:00
Fix find_first_interface_address()
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
7ab3c6a612
commit
f17365cf6d
@ -435,7 +435,11 @@ find_first_interface_address() # $1 = interface
|
|||||||
#
|
#
|
||||||
# If there wasn't one, bail out now
|
# If there wasn't one, bail out now
|
||||||
#
|
#
|
||||||
[ -n "$addr" ] || startup_error "Can't determine the IP address of $1"
|
if [ -z "$addr" ]; then
|
||||||
|
echo " ERROR: Can't determine the IP address of $1" >&2
|
||||||
|
kill $$
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
#
|
#
|
||||||
# Strip off the trailing VLSM mask (or the peer IP in case of a P-t-P link)
|
# Strip off the trailing VLSM mask (or the peer IP in case of a P-t-P link)
|
||||||
# along with everything else on the line
|
# along with everything else on the line
|
||||||
|
Loading…
Reference in New Issue
Block a user