Skip to content

Case insensitivity for public suffix #22

@kxxt

Description

@kxxt

When parsing domains(e.g. bbb.aaa.ac.rS with ac.rs public suffix, the results are wrong except the first call. The parsed root is ac.rS instead of aaa.ac.rS)

>> :dep addr
   Compiling psl v2.1.106
   Compiling addr v0.15.6
>> addr::parse_dns_name("aaa.ac.rS").unwrap().root()
Some("ac.rS")
>> addr::parse_dns_name("aaa.ac.rs").unwrap().root()
Some("aaa.ac.rs")

It appears that addr does not take case insensitivity into account.

Relevant link: https://developers.google.com/speed/public-dns/docs/security?csw=1#randomize_case

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions