Bump version
This commit is contained in:
parent
3839b56199
commit
6f3c50592e
|
@ -259,8 +259,8 @@
|
|||
},
|
||||
{
|
||||
"ImportPath": "github.com/weppos/publicsuffix-go/publicsuffix",
|
||||
"Comment": "v0.4.0-23-gb6e96f6",
|
||||
"Rev": "b6e96f65d0593a1db0bb069c6bb2686e54008e2e"
|
||||
"Comment": "v0.4.0-24-gf8afde6",
|
||||
"Rev": "f8afde64429e7c479c7e4f681f66fbf792dac9c6"
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/zmap/zcrypto/json",
|
||||
|
|
|
@ -199,16 +199,20 @@ func (l *List) Find(name string, options *FindOptions) *Rule {
|
|||
options = DefaultFindOptions
|
||||
}
|
||||
|
||||
part := name
|
||||
for {
|
||||
rule, ok := l.rules[name]
|
||||
if ok && (!options.IgnorePrivate || !rule.Private) {
|
||||
rule, ok := l.rules[part]
|
||||
|
||||
if ok && rule.Match(name) && !(options.IgnorePrivate && rule.Private) {
|
||||
return rule
|
||||
}
|
||||
i := strings.IndexRune(name, '.')
|
||||
|
||||
i := strings.IndexRune(part, '.')
|
||||
if i < 0 {
|
||||
return options.DefaultRule
|
||||
}
|
||||
name = name[i+1:]
|
||||
|
||||
part = part[i+1:]
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue