diff options
author | jim-p <jimp@pfsense.org> | 2010-10-04 15:01:40 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-10-04 15:01:40 -0400 |
commit | 68b0452720b80176ace0fab5a016ea3a5853e178 (patch) | |
tree | ec879e7d041cfb6f1e8d656f2bde6b3343391d08 /usr | |
parent | e9b0bcf765bd8238d45ec74461c66b13f98709b0 (diff) | |
download | pfsense-68b0452720b80176ace0fab5a016ea3a5853e178.zip pfsense-68b0452720b80176ace0fab5a016ea3a5853e178.tar.gz |
Fix OpenVPN client kill. Reported at http://forum.pfsense.org/index.php/topic,28784.0.html
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/status_openvpn.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/local/www/status_openvpn.php b/usr/local/www/status_openvpn.php index 683db69..30c3a84 100644 --- a/usr/local/www/status_openvpn.php +++ b/usr/local/www/status_openvpn.php @@ -85,9 +85,9 @@ function kill_client($port, $remipp) { break; /* parse header list line */ - if (strpos($line, "INFO:")) + if (strpos($line, "INFO:") !== false) continue; - if (strpos($line, "SUCCESS")) { + if (strpos($line, "SUCCESS") !== false) { $killed = 0; } break; @@ -160,7 +160,7 @@ include("head.inc"); ?> </tr> <?php foreach ($server['conns'] as $conn): ?> - <tr name='<?php echo "r:{$server['port']}:{$conn['remote_host']}"; ?>'> + <tr name='<?php echo "r:{$server['mgmt']}:{$conn['remote_host']}"; ?>'> <td class="listlr"> <?=$conn['common_name'];?> </td> @@ -182,8 +182,8 @@ include("head.inc"); ?> <td class='list'> <img src='/themes/<?php echo $g['theme']; ?>/images/icons/icon_x.gif' height='17' width='17' border='0' onclick="killClient('<?php echo $server['mgmt']; ?>', '<?php echo $conn['remote_host']; ?>');" style='cursor:pointer;' - name='<?php echo "i:{$server['port']}:{$conn['remote_host']}"; ?>' - title='<?=gettext("Kill client connection from"); ?> <?php echo $conn['remote_host']; ?>' alt='' /> + name='<?php echo "i:{$server['mgmt']}:{$conn['remote_host']}"; ?>' + title='<?php echo gettext("Kill client connection from") . ' ' . $conn['remote_host']; ?>' alt='' /> </td> </tr> |