diff options
author | Benjamin Sago <ogham@users.noreply.github.com> | 2021-10-07 22:47:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-07 22:47:07 +0100 |
commit | af64ebe84d9afc8ecbc2e2a6d063e217d77c45e6 (patch) | |
tree | cbf5ed00d6f902678309c6b0956a049f9e52864c | |
parent | bd9c65ac1878577c2be646d40bba11c7671f3c0e (diff) | |
parent | 8bccd7536f0dfd4d3949175a8c652d833124be6c (diff) |
Merge pull request #84 from txels/master
Allow _ in domain names
-rw-r--r-- | dns/src/strings.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dns/src/strings.rs b/dns/src/strings.rs index fee4a43..46489e2 100644 --- a/dns/src/strings.rs +++ b/dns/src/strings.rs @@ -22,7 +22,7 @@ pub struct Labels { #[cfg(feature = "with_idna")] fn label_to_ascii(label: &str) -> Result<String, unic_idna::Errors> { - let flags = unic_idna::Flags{use_std3_ascii_rules: true, transitional_processing: false, verify_dns_length: true}; + let flags = unic_idna::Flags{use_std3_ascii_rules: false, transitional_processing: false, verify_dns_length: true}; unic_idna::to_ascii(label, flags) } |