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