소스 검색

Allow _ in domain names

Carles Barrobés 3 년 전
부모
커밋
8bccd7536f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      dns/src/strings.rs

+ 1 - 1
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)
 }