You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I made a test on the hostname "ec2-100-24-188-149.compute-1.amazonaws.com" , and was expecting it to return amazonaws.com.
But I'm getting None as return.
Assume you used the current PSL untouched, None should be correct for the first test.
psl.privatesuffix("compute-1.amazonaws.com") == "amazonaws.com" because "compute-1.amazonaws.com" and "amazonaws.com" are not a public suffix, but still, "ec2-aaa-aaa-aaa-aaa.compute-1.amazonaws.com" is a public suffix since the PSL declared that "*.compute-1.amazonaws.com" is a wildcard public suffix.
psl.privatesuffix("ec2-aaa-aaa-aaa-aaa.compute-1.amazonaws.com") == psl.privatesuffix("com") == None, which means the argument has no private part on top of the public suffix.
Such a company-owned public suffix declaration can be ignored with PublicSuffixList(only_icann=True) option.
Hi,
I made a test on the hostname "ec2-100-24-188-149.compute-1.amazonaws.com" , and was expecting it to return amazonaws.com.
But I'm getting None as return.
'amazonaws.com' != None
Expected :None
Actual :'amazonaws.com'
If I remove the first ec2-... I'm getting correct result:
PASSED [100%]
Process finished with exit code 0
In https://publicsuffix.org/list/public_suffix_list.dat I can see *.compute-1.amazonaws.com.
Should the first not match ?
The text was updated successfully, but these errors were encountered: