From d25bb1d4757f998670e5525a63944758cb964c7d Mon Sep 17 00:00:00 2001 From: Vasudeva Kamath Date: Mon, 18 Jul 2016 10:17:41 +0530 Subject: Fix ip selecting regexp --- port_forward | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/port_forward b/port_forward index 4842b3c..b7bd49f 100755 --- a/port_forward +++ b/port_forward @@ -84,7 +84,7 @@ DESTINATION="$4" # Get the incoming interface IP. This is used for SNAT. IN_IP=$(ip addr show $IN_INTERFACE|\ - perl -nE '/inet\s(.*)\sscope/ and say $1' | tr '\n' ' ') + perl -nE '/inet\s(.*)\sbrd/ and say $1' | tr '\n' ' ') if [ -n "$CLEAR_RULES" ]; then -- cgit v1.2.3