fix: wildcard matching problem

This commit is contained in:
gVisor bot 2023-04-28 16:55:35 +00:00
parent c96748e198
commit 7160fb2a4b

View File

@ -104,8 +104,8 @@ func (ss *DomainSet) Has(key string) bool {
goto RESTART
}
}
for ; ; nextBmIdx++ {
if nextBmIdx-nextNodeId < len(ss.labels) && ss.labels[nextBmIdx-nextNodeId] == domainStepByte {
for ; nextBmIdx-nextNodeId < len(ss.labels); nextBmIdx++ {
if ss.labels[nextBmIdx-nextNodeId] == domainStepByte {
bmIdx = nextBmIdx
nodeId = nextNodeId
i = j