Explorar o código

We skip processing active users if the configuration does not specify the management interface parameters.

root hai 7 meses
pai
achega
bea219c5a8
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      html/admin/functions.php

+ 3 - 0
html/admin/functions.php

@@ -13,6 +13,9 @@ function updateLastRequestTime($server) {
 }
 
 function openvpnManagementCommand($server, $command) {
+
+    if (empty($server['host']) || empty($server['port']) || empty($server['password'])) { return false; }
+
     $mgmt_host = $server['host'];
     $mgmt_port = $server['port'];
     $mgmt_pass = $server['password'];