Skip to content

has_known_suffix not support  #19

@wensiwei

Description

@wensiwei
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?

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