summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Sago <ogham@users.noreply.github.com>2021-10-07 22:47:07 +0100
committerGitHub <noreply@github.com>2021-10-07 22:47:07 +0100
commitaf64ebe84d9afc8ecbc2e2a6d063e217d77c45e6 (patch)
treecbf5ed00d6f902678309c6b0956a049f9e52864c
parentbd9c65ac1878577c2be646d40bba11c7671f3c0e (diff)
parent8bccd7536f0dfd4d3949175a8c652d833124be6c (diff)
Merge pull request #84 from txels/master
Allow _ in domain names
-rw-r--r--dns/src/strings.rs2
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)
}