summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_nat_1to1.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/firewall_nat_1to1.php')
-rwxr-xr-xusr/local/www/firewall_nat_1to1.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr/local/www/firewall_nat_1to1.php b/usr/local/www/firewall_nat_1to1.php
index e114cd6..306c811 100755
--- a/usr/local/www/firewall_nat_1to1.php
+++ b/usr/local/www/firewall_nat_1to1.php
@@ -135,10 +135,14 @@ include("head.inc");
?>
</td>
<td class="listr" ondblclick="document.location='firewall_nat_1to1_edit.php?id=<?=$i;?>';">
- <?php echo $textss . $natent['external'] . $textse; ?>
+ <?php
+ $source_net = pprint_address($natent['source']);
+ $source_cidr = strstr($source_net, '/');
+ echo $textss . $natent['external'] . $source_cidr . $textse;
+ ?>
</td>
<td class="listr" ondblclick="document.location='firewall_nat_1to1_edit.php?id=<?=$i;?>';">
- <?php echo $textss . pprint_address($natent['source']). $textse; ?>
+ <?php echo $textss . $source_net . $textse; ?>
</td>
<td class="listr" ondblclick="document.location='firewall_nat_1to1_edit.php?id=<?=$i;?>';">
<?php echo $textss . pprint_address($natent['destination']) . $textse; ?>
OpenPOWER on IntegriCloud