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
This commit is contained in:
parent
531686c1ea
commit
261f2efe47
|
@ -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">
|
||||
|
|
Reference in New Issue