From a88a1377c4ab3869f05bc4dc33c9b4c12280ec9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=80=9D=E6=95=8F?= Date: Fri, 26 Aug 2022 09:01:45 +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 --- main.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 6d5eecf..d722992 100644 --- a/main.go +++ b/main.go @@ -25,7 +25,6 @@ func testmain() { var a chan bool = make(chan bool) go func() { <-a - cmdstr := fmt.Sprintf("ip addr add %s dev stun", config.Network.Self.Virt) log.Println(cmdstr) cmd := strings.Split(cmdstr, " ") @@ -61,8 +60,8 @@ func testmain() { log.Fatal(err) } frame = frame[:n] - log.Printf("Dst: %s\n", waterutil.IPv4Destination(frame)) - log.Printf("Src: %s\n", waterutil.IPv4Source(frame)) + log.Printf("Dst: %s %s\n", waterutil.IPv4Destination(frame), frame.Destination()) + log.Printf("Src: %s %s\n", waterutil.IPv4Source(frame), frame.Source()) log.Printf("Ethertype: % x\n", frame.Ethertype()) // log.Printf("Payload: % x\n", frame.Payload()) }