Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

has_known_suffix not support #19

Open
wensiwei opened this issue Mar 15, 2023 · 0 comments
Open

has_known_suffix not support #19

wensiwei opened this issue Mar 15, 2023 · 0 comments

Comments

@wensiwei
Copy link

Name { full: "aaa-bbb.cccc.lab", suffix: Suffix { bytes: [108, 97, 98], fqdn: false, typ: None } }
let url_check = match parse_domain_name(address) {
    Ok(domain) => {
        println!("{:?}", domain);
        domain.has_known_suffix()
    }
    Err(_) => {
        false
    }
};

I tried to use lab as the domain name suffix and found that the verification was not successful.
It is true that lab is not a commonly used domain name suffix. Can I implement a method that supports custom verification suffixes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant