Skip to content

parseBaseCname Error #66

@qbzysa

Description

@qbzysa

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
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions