From 226d8e777b380e890ee761fbfd3a45511d5f8955 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=80=9D=E6=95=8F?= Date: Thu, 25 Aug 2022 18:23:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tap.go b/tap.go index 5e1307c..afdcdb7 100644 --- a/tap.go +++ b/tap.go @@ -160,7 +160,7 @@ func (nc *NetCard) runRead() { log.Fatal(err) } - log.Printf("%v %v", net.IP(rframe.Source()).String(), rframe.Destination()) + log.Printf("%v %v", net.IP(rframe.Source()).To4().String(), net.IP(rframe.Destination()).To4()) if rframe.Ethertype() != ethernet.IPv4 { continue