diff options
author | Chris Buechler <cmb@pfsense.org> | 2014-11-04 19:57:46 -0600 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2014-11-04 19:57:46 -0600 |
commit | 261f2efe47a52a0d9a1756cf53f92c7d2148a40c (patch) | |
tree | 13f5f0b3de91373c56932a4ae6e0b462eb65b72c | |
parent | 531686c1ea5c383090500b597bd7d34c4c205a3b (diff) | |
download | pfsense-261f2efe47a52a0d9a1756cf53f92c7d2148a40c.zip pfsense-261f2efe47a52a0d9a1756cf53f92c7d2148a40c.tar.gz |
fix NAT-T status. The 'nat' in the status array just tells how the connection is configured, not what it's actually using. Port seems to be the best way to determine what it's using. Fix up some other text while here
-rw-r--r-- | usr/local/www/diag_ipsec.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/diag_ipsec.php b/usr/local/www/diag_ipsec.php index 0f4e2ef..18686d0 100644 --- a/usr/local/www/diag_ipsec.php +++ b/usr/local/www/diag_ipsec.php @@ -161,7 +161,7 @@ $status = ipsec_smp_dump_status(); gettext('Port: ') . htmlspecialchars($ikesa['local']['port']); else echo gettext("Unknown"); - if ($ikesa['local']['nat'] != 'false') + if ($ikesa['local']['port'] == '4500') echo " NAT-T"; } ?> @@ -201,7 +201,7 @@ $status = ipsec_smp_dump_status(); gettext('Port: ') . htmlspecialchars($ikesa['remote']['port']); else echo gettext("Unknown"); - if ($ikesa['remote']['nat'] != 'false') + if ($ikesa['remote']['port'] == '4500') echo " NAT-T"; } ?> @@ -446,8 +446,8 @@ $status = ipsec_smp_dump_status(); ?> <td class="listr"> <center> - <img src ="/themes/<?php echo $g['theme']; ?>/images/icons/icon_pass.gif" title=<?php echo gettext("Waiting connections");?> alt=""/> - <br/><?php echo gettext("Waiting connections");?> + <img src ="/themes/<?php echo $g['theme']; ?>/images/icons/icon_pass.gif" title=<?php echo gettext("Awaiting connections");?> alt=""/> + <br/><?php echo gettext("Awaiting connections");?> </center> </td> <td valign="middle" class="list nowrap"> |