This commit is contained in:
2025-01-02 18:15:07 +08:00
parent 02cc3c3d9e
commit cb0f58f297
3 changed files with 7 additions and 5 deletions

2
cap.go
View File

@@ -47,7 +47,7 @@ func printPacketInfo(packet gopacket.Packet) {
defer ipMutex.Unlock()
if !isIPInList(ip.SrcIP) {
ipList.PushBack(ip.SrcIP)
log.Printf("已添加源 IP: %s 到链表\n", ip.SrcIP)
log.Printf("\033[31m 已添加源 IP: %s 到链表 \033[0m\n", ip.SrcIP)
}
}