r2172 - fix a typo in NAT rules displaying code (pointed out by Piotr Nowacki)
authorDenis Ovsienko <infrastation@yandex.ru>
Tue, 26 Aug 2008 15:56:52 +0000 (15:56 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Tue, 26 Aug 2008 15:56:52 +0000 (15:56 +0000)
ChangeLog
inc/interface.php

index 77d3428..95de3d2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@
        bugfix: tags are now properly displayed for users
        bugfix: the JavaScript error isn't generated any more (fix by Aaron)
        bugfix: tag tree is now always correctly sorted
+       bugfix: fix a typo in NAT rules displaying code (pointed out by Piotr Nowacki)
 0.16.2 2008-08-21
        bugfix: IP address picker was broken
        bugfix: more message processing fixes
index 19f982e..af0c57a 100644 (file)
@@ -2434,7 +2434,7 @@ function renderIPv4Address ($dottedquad)
                echo "<table class='widetable' cellpadding=5 cellspacing=0 border=0 align='center' width='100%'>\n";
                echo "<tr><th>proto</th><th>from</th><th>to</th><th>comment</th></tr>\n";
                foreach ($address['outpf'] as $rule)
-                       echo "<tr><td>${rule['proto']}</td><td>${rule['localip']}:${rule['localport']}</td><td>${rule['remoteip']}:${rule['localport']}</td><td>${rule['description']}</td></tr>";
+                       echo "<tr><td>${rule['proto']}</td><td>${rule['localip']}:${rule['localport']}</td><td>${rule['remoteip']}:${rule['remoteport']}</td><td>${rule['description']}</td></tr>";
                echo "</table>";
                finishPortlet();
        }
@@ -2445,7 +2445,7 @@ function renderIPv4Address ($dottedquad)
                echo "<table class='widetable' cellpadding=5 cellspacing=0 border=0 align='center' width='100%'>\n";
                echo "<tr><th>proto</th><th>from</th><th>to</th><th>comment</th></tr>\n";
                foreach ($address['inpf'] as $rule)
-                       echo "<tr><td>${rule['proto']}</td><td>${rule['localip']}:${rule['localport']}</td><td>${rule['remoteip']}:${rule['localport']}</td><td>${rule['description']}</td></tr>";
+                       echo "<tr><td>${rule['proto']}</td><td>${rule['localip']}:${rule['localport']}</td><td>${rule['remoteip']}:${rule['remoteport']}</td><td>${rule['description']}</td></tr>";
                echo "</table>";
                finishPortlet();
        }