diff options
author | Carles Barrobés <carles@barrobes.com> | 2021-09-28 11:07:36 +0200 |
---|---|---|
committer | Carles Barrobés <carles@barrobes.com> | 2021-09-28 11:07:36 +0200 |
commit | 8bccd7536f0dfd4d3949175a8c652d833124be6c (patch) | |
tree | 80e4f95c86c163aad56e83f5e7919bb325bc8608 | |
parent | 640818d36e7ed04e2666aba90d0c037787cb9d6c (diff) |
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) } |