summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xport_forward2
1 files changed, 1 insertions, 1 deletions
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