File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,7 @@ func TestIsDomainName(t *testing.T) {
176
176
".." : & ret {false , 1 },
177
177
"@." : & ret {true , 1 },
178
178
"www.example.com" : & ret {true , 3 },
179
+ "www.e%ample.com" : & ret {true , 3 },
179
180
"www.example.com." : & ret {true , 3 },
180
181
"mi\\ k.nl." : & ret {true , 2 },
181
182
"mi\\ k.nl" : & ret {true , 2 },
Original file line number Diff line number Diff line change @@ -1440,9 +1440,9 @@ func (dns *Msg) Unpack(msg []byte) (err error) {
1440
1440
return err
1441
1441
}
1442
1442
}
1443
- // If we have seen a TC bit being set, we return here, without
1444
- // an error, because technically it isn't an error. So we return
1445
- // without parsing, the potentially corrupt packet.
1443
+ // If we see a TC bit being set we return here, without
1444
+ // an error, because technically it isn't an error. So return
1445
+ // without parsing the potentially corrupt packet and hitting an error .
1446
1446
if dns .Truncated {
1447
1447
dns .Answer = nil
1448
1448
dns .Ns = nil
You can’t perform that action at this time.
0 commit comments