diff --git a/Shorewall/firewall b/Shorewall/firewall index 8db5f75f7..811a40d36 100755 --- a/Shorewall/firewall +++ b/Shorewall/firewall @@ -2856,7 +2856,7 @@ decodeaddr() { IFS=. for x in $1; do - temp=$(( $temp * 256 + $x )) + temp=$(( $(( $temp << 8 )) | $x )) done echo $temp diff --git a/Shorewall/releasenotes.txt b/Shorewall/releasenotes.txt index 830065fa5..51805f2f7 100755 --- a/Shorewall/releasenotes.txt +++ b/Shorewall/releasenotes.txt @@ -25,4 +25,4 @@ New Features: Example: - DNAT net loc:192.168.10.2-192.168.10.5 tcp 80 + DNAT net loc:192.168.10.2-192.168.10.5 tcp 80 \ No newline at end of file