general: optimize codes

This commit is contained in:
nadoo committed 2020-08-10 18:43:41 +08:00
1 parent 3c509f8b7a
commit 8f661a67a4
15 files changed
+35 -37

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ import (
// Messages carried by UDP are restricted to 512 bytes (not counting the IP
// or UDP headers). Longer messages are truncated and the TC bit is set in
// the header.
const UDPMaxLen = 510
const UDPMaxLen = 512
// HeaderLen is the length of dns msg header.
const HeaderLen = 12