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
parseBaseCname() may be error. eg:www.ucloud.cn.ucloud.com.cn
func parseBaseCname(url string) (string, error) { extract, err := tldextract.New(TldCachePath, false) if err != nil { return "", err } res := extract.Extract(url) rootDomain := res.Root + "." + res.Tld return rootDomain, nil }
The text was updated successfully, but these errors were encountered:
fix: CName match #66
9c14043
Signed-off-by: zu1k <i@lgf.im>
感谢反馈,不过我认为tldextract不太符合我们的需求,并且需要引入额外的库,我使用其他方法解决了,请查看最新提交
Sorry, something went wrong.
a6cc423
0198f6f
zu1k
No branches or pull requests
parseBaseCname() may be error. eg:www.ucloud.cn.ucloud.com.cn
func parseBaseCname(url string) (string, error) {
extract, err := tldextract.New(TldCachePath, false)
if err != nil {
return "", err
}
res := extract.Extract(url)
rootDomain := res.Root + "." + res.Tld
return rootDomain, nil
}
The text was updated successfully, but these errors were encountered: