瀏覽代碼

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

root 7 月之前
父節點
當前提交
bea219c5a8
共有 1 個文件被更改,包括 3 次插入0 次删除
  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'];