2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-06 10:07:15 +08:00

特性(系统安全):防火墙支持端口范围添加

This commit is contained in:
耗子
2022-12-07 17:13:38 +08:00
parent ed36715d90
commit ab85294dd6
2 changed files with 1 additions and 8 deletions

View File

@@ -176,7 +176,6 @@ class SafesController extends Controller
// 正则匹配出ports
preg_match('/ports: (.*)/', $firewallRules, $matches);
$rawPorts = $matches[1];
// 22/tcp 80/tcp 443/tcp 8888/tcp 5432/tcp
$ports = explode(' ', $rawPorts);
// 对ports进行分割为port=>protocol形式
$rules = [];