支持连续端口

This commit is contained in:
huweishan 2024-04-08 16:16:45 +08:00
parent 15573a6ef3
commit e55b2b6f0a
No known key found for this signature in database
GPG Key ID: 955238B53F458D37
2 changed files with 3 additions and 3 deletions

View File

@ -203,7 +203,7 @@ func SetGroup(g *Group) error {
v.Ports = ports
linkAcl = append(linkAcl, v)
} else {
return errors.New("端口: "+v.PortStr+" 格式错误,请用逗号分隔的端口列表,比如: 22,80,443")
return errors.New("端口: "+v.PortStr+" 格式错误,请用逗号分隔的端口,比如: 22,80,443 连续端口用-,比如:1234-5678")
}
}

View File

@ -344,8 +344,8 @@
<el-tab-pane label="权限控制" name="link_acl">
<el-form-item label="权限控制" prop="link_acl">
<el-row class="msg-info">
<el-col :span="20">输入CIDR格式如: 192.168.3.0/24 端口0表示所有端口,多个端口用,号分隔</el-col>
<el-col :span="4">
<el-col :span="22">输入CIDR格式如: 192.168.3.0/24 端口0表示所有端口,多个端口用,号分隔,连续端口:1234-5678</el-col>
<el-col :span="2">
<el-button size="mini" type="success" icon="el-icon-plus" circle
@click.prevent="addDomain(ruleForm.link_acl)"></el-button>
</el-col>