jpillora / go-tld

TLD Parser in Go
MIT License
125 stars 18 forks source link

the amazonaws domain have error #11

Open gem-p4trick opened 3 years ago

gem-p4trick commented 3 years ago

example domain : s3.cn-north-1.amazonaws.com.cn the ressult return the nil

zexa commented 2 years ago

Same with https://s3-us-west-1.amazonaws.com/.

The resulting error is publicsuffix: cannot derive eTLD+1 for domain "s3-us-west-1.amazonaws.com".

I'd fix it myself, but when it comes to func PublicSuffix(domain string) (publicSuffix string, icann bool) I barely understand what the heck is going on in there.