Merge from remote branch

This commit is contained in:
yaling888
2021-11-09 21:11:38 +08:00
35 changed files with 514 additions and 296 deletions

View File

@ -52,7 +52,11 @@ func (p *Port) RuleExtra() *C.RuleExtra {
}
func (p *Port) matchPortReal(portRef string) bool {
port, _ := strconv.Atoi(portRef)
port, err := strconv.Atoi(portRef)
if err != nil {
return false
}
var rs bool
for _, pr := range p.portList {
if pr.portEnd == -1 {