Browse Source

Feature #TASK_QT-18250 去除ParseDns打印

Carl 1 năm trước cách đây
mục cha
commit
76301a2b34
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      ebpftracer/l7/dns.go

+ 1 - 2
ebpftracer/l7/dns.go

@@ -1,7 +1,6 @@
 package l7
 
 import (
-	"fmt"
 	"strings"
 
 	"golang.org/x/net/dns/dnsmessage"
@@ -42,6 +41,6 @@ func ParseDns(payload []byte) (string, string, uint32, []netaddr.IP) {
 	if len(qType) > 4 {
 		qType = qType[4:]
 	}
-	fmt.Println("gostring", msg.GoString())
+	//fmt.Println("gostring", msg.GoString())
 	return qType, strings.TrimSuffix(q.Name.String(), "."), ttl, ips
 }