Revision aa11df80
Added by Jim Pingle about 3 years ago
src/usr/local/www/widgets/widgets/openvpn.widget.php | ||
---|---|---|
156 | 156 |
$opstring .= "</td>"; |
157 | 157 |
$opstring .= "<td>"; |
158 | 158 |
|
159 |
if ($sk_server['status'] == "up") {
|
|
159 |
if (strtolower($sk_server['state']) == "connected") {
|
|
160 | 160 |
/* tunnel is up */ |
161 | 161 |
$opstring .= "<i class=\"fa fa-arrow-up text-success\"></i>"; |
162 | 162 |
} else { |
... | ... | |
233 | 233 |
$opstring .= "</td>"; |
234 | 234 |
$opstring .= "<td>"; |
235 | 235 |
|
236 |
if ($client['status'] == "up") {
|
|
236 |
if (strtolower($client['state']) == "connected") {
|
|
237 | 237 |
/* tunnel is up */ |
238 | 238 |
$opstring .= "<i class=\"fa fa-arrow-up text-success\"></i>"; |
239 | 239 |
} else { |
Also available in: Unified diff
Adapt OpenVPN widget to new output. Fixes #13129