Merge pull request #11 from Dirbaio/patch-1

Fix typo in label max length
This commit is contained in:
Emil Hernvall 2020-12-07 09:23:45 +01:00 committed by GitHub
commit 1a626051bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,7 @@ We'll also need a function for writing query names in labeled form:
fn write_qname(&mut self, qname: &str) -> Result<()> { fn write_qname(&mut self, qname: &str) -> Result<()> {
for label in qname.split('.') { for label in qname.split('.') {
let len = label.len(); let len = label.len();
if len > 0x34 { if len > 0x3f {
return Err("Single label exceeds 63 characters of length".into()); return Err("Single label exceeds 63 characters of length".into());
} }