Revision 68b04527
Added by Jim Pingle almost 15 years ago
usr/local/www/status_openvpn.php | ||
---|---|---|
85 | 85 |
break; |
86 | 86 |
|
87 | 87 |
/* parse header list line */ |
88 |
if (strpos($line, "INFO:")) |
|
88 |
if (strpos($line, "INFO:") !== false)
|
|
89 | 89 |
continue; |
90 |
if (strpos($line, "SUCCESS")) { |
|
90 |
if (strpos($line, "SUCCESS") !== false) {
|
|
91 | 91 |
$killed = 0; |
92 | 92 |
} |
93 | 93 |
break; |
... | ... | |
160 | 160 |
</tr> |
161 | 161 |
|
162 | 162 |
<?php foreach ($server['conns'] as $conn): ?> |
163 |
<tr name='<?php echo "r:{$server['port']}:{$conn['remote_host']}"; ?>'>
|
|
163 |
<tr name='<?php echo "r:{$server['mgmt']}:{$conn['remote_host']}"; ?>'>
|
|
164 | 164 |
<td class="listlr"> |
165 | 165 |
<?=$conn['common_name'];?> |
166 | 166 |
</td> |
... | ... | |
182 | 182 |
<td class='list'> |
183 | 183 |
<img src='/themes/<?php echo $g['theme']; ?>/images/icons/icon_x.gif' height='17' width='17' border='0' |
184 | 184 |
onclick="killClient('<?php echo $server['mgmt']; ?>', '<?php echo $conn['remote_host']; ?>');" style='cursor:pointer;' |
185 |
name='<?php echo "i:{$server['port']}:{$conn['remote_host']}"; ?>'
|
|
186 |
title='<?=gettext("Kill client connection from"); ?> <?php echo $conn['remote_host']; ?>' alt='' />
|
|
185 |
name='<?php echo "i:{$server['mgmt']}:{$conn['remote_host']}"; ?>'
|
|
186 |
title='<?php echo gettext("Kill client connection from") . ' ' . $conn['remote_host']; ?>' alt='' />
|
|
187 | 187 |
</td> |
188 | 188 |
</tr> |
189 | 189 |
|
Also available in: Unified diff
Fix OpenVPN client kill. Reported at http://forum.pfsense.org/index.php/topic,28784.0.html