Skip to content

Commit

Permalink
compare full string against public suffx, not just number of labels
Browse files Browse the repository at this point in the history
  • Loading branch information
peterthomassen committed May 20, 2020
1 parent 45438f0 commit e6beb92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psl_dns/querier.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def get_rules(self, domain):

def is_public_suffix(self, domain, public_suffix=None):
public_suffix = public_suffix or self.get_public_suffix(domain)
return domain.count('.') == public_suffix.count('.')
return domain == public_suffix

def query(self, domain, rdatatype):
# Normalize, then construct QNAME, and retrieve response
Expand Down

0 comments on commit e6beb92

Please sign in to comment.