From b498d2dda26f0c64186713e3ba1e506d2ecd5edd Mon Sep 17 00:00:00 2001 From: MetaCubeX Date: Wed, 27 Apr 2022 22:54:12 +0800 Subject: [PATCH] chore: system err log --- listener/tun/ipstack/system/mars/nat/nat.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/listener/tun/ipstack/system/mars/nat/nat.go b/listener/tun/ipstack/system/mars/nat/nat.go index 4ff95db7..b8b197c5 100644 --- a/listener/tun/ipstack/system/mars/nat/nat.go +++ b/listener/tun/ipstack/system/mars/nat/nat.go @@ -1,6 +1,7 @@ package nat import ( + log "github.com/sirupsen/logrus" "io" "net" "net/netip" @@ -43,6 +44,7 @@ func Start(device io.ReadWriter, gateway, portal, broadcast netip.Addr) (*TCP, * for { n, err := device.Read(buf) if err != nil { + log.Warnln("system error:%s", err.Error()) continue }