mirror of
https://github.com/EmilHernvall/dnsguide.git
synced 2024-12-22 15:44:17 +07:00
Fix typo in label max length
This commit is contained in:
parent
506c61c92c
commit
f9b445d4a1
@ -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<()> {
|
||||
for label in qname.split('.') {
|
||||
let len = label.len();
|
||||
if len > 0x34 {
|
||||
if len > 0x3f {
|
||||
return Err("Single label exceeds 63 characters of length".into());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user