summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_nat.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-04-21 18:29:22 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-04-21 18:29:22 +0000
commit3e33bb10cc25b1058e59a1e029541e265bb11e3f (patch)
tree8417eb4209bc4901dd6a6e622d8a6f036c85a1af /usr/local/www/firewall_nat.php
parentd93bf3a587f75e35aafb7f430c33865b7658d007 (diff)
downloadpfsense-3e33bb10cc25b1058e59a1e029541e265bb11e3f.zip
pfsense-3e33bb10cc25b1058e59a1e029541e265bb11e3f.tar.gz
Show LAN, WAN or OPT$X['descr']
Ticket #929
Diffstat (limited to 'usr/local/www/firewall_nat.php')
-rwxr-xr-xusr/local/www/firewall_nat.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/firewall_nat.php b/usr/local/www/firewall_nat.php
index c727982..9356e6c 100755
--- a/usr/local/www/firewall_nat.php
+++ b/usr/local/www/firewall_nat.php
@@ -183,8 +183,10 @@ include("head.inc");
<?php
if (!$natent['interface'] || ($natent['interface'] == "wan"))
echo "WAN";
+ else if($natent['interface'] == "LAN")
+ echo "LAN";
else
- echo strtoupper($natent['interface']);
+ echo strtoupper($config['interfaces'][$natent['interface']]['descr']);
?>
</td>
<td class="listr" onClick="fr_toggle(<?=$nnats;?>)" id="frd<?=$nnats;?>" ondblclick="document.location='firewall_nat_edit.php?id=<?=$nnats;?>';">
OpenPOWER on IntegriCloud