From 8bccd7536f0dfd4d3949175a8c652d833124be6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carles=20Barrobe=CC=81s?= Date: Tue, 28 Sep 2021 11:07:36 +0200 Subject: Allow _ in domain names --- dns/src/strings.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { - 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) } -- cgit v1.2.3