diff options
author | Vasudeva Kamath <vasudeva.kamath@in.abb.com> | 2016-07-18 10:17:41 +0530 |
---|---|---|
committer | Vasudeva Kamath <vasudeva.kamath@in.abb.com> | 2016-07-18 10:17:41 +0530 |
commit | d25bb1d4757f998670e5525a63944758cb964c7d (patch) | |
tree | 909e24daa9de2231198f03bb04ffb711de44fc03 | |
parent | b8f42ab1f6dc17bbb352bcc3a12020d47429df00 (diff) |
Fix ip selecting regexp
-rwxr-xr-x | port_forward | 2 |
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 |