diff options
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/status_openvpn.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/local/www/status_openvpn.php b/usr/local/www/status_openvpn.php index 9240825..683db69 100644 --- a/usr/local/www/status_openvpn.php +++ b/usr/local/www/status_openvpn.php @@ -79,6 +79,11 @@ function kill_client($port, $remipp) { fputs($fp, "kill {$remipp}\n"); while (!feof($fp)) { $line = fgets($fp, 1024); + + $info = stream_get_meta_data($fp); + if ($info['timed_out']) + break; + /* parse header list line */ if (strpos($line, "INFO:")) continue; |