We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
overture的匹配模式full-map,只能对域名玩这个匹配才能识别, 可以增加对域名后缀匹配. 比如google.com作为匹配. 所有的 *.google.com都能被匹配到(比如www.google.com, mail.google.com)
The text was updated successfully, but these errors were encountered:
/*
package suffix
import ( "strings" log "github.com/sirupsen/logrus" )
type List struct { DataList []string }
func (s *List) Insert(str string) error { s.DataList = append(s.DataList, "." + str) return nil }
func (s *List) Has(str string) bool { str = "." + str for _, data := range s.DataList { if strings.Contains(str, data) { log.Debugf("Match: Domain %s match suffix-list %s", str, data) return true } } return false }
func (s *List) Name() string { return "suffix-list" }
Sorry, something went wrong.
自己瞎改了一段, 测试了一下可以实现子域名匹配.
#180
No branches or pull requests
overture的匹配模式full-map,只能对域名玩这个匹配才能识别, 可以增加对域名后缀匹配. 比如google.com作为匹配. 所有的 *.google.com都能被匹配到(比如www.google.com, mail.google.com)
The text was updated successfully, but these errors were encountered: