Sfoglia il codice sorgente

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

root 7 mesi fa
parent
commit
bea219c5a8
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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'];