添加acl协议支持

This commit is contained in:
bjdgyc
2024-09-04 16:59:16 +08:00
parent 5b498cbc59
commit 76779de80a
2 changed files with 21 additions and 19 deletions

View File

@@ -178,6 +178,9 @@ func SetGroup(g *Group) error {
v.IpProto = waterutil.UDP
case ICMP:
v.IpProto = waterutil.ICMP
default:
// 其他类型都是 all
v.Protocol = ALL
}
portsStr := v.Port