From be6933607bfa9c962b1d331b69939d7db39fadb2 Mon Sep 17 00:00:00 2001 From: e1732a364fed <75717694+e1732a364fed@users.noreply.github.com> Date: Sat, 1 Jan 2000 00:00:00 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- proxy/tun/tun.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/proxy/tun/tun.go b/proxy/tun/tun.go index 5026e8a..a76047b 100644 --- a/proxy/tun/tun.go +++ b/proxy/tun/tun.go @@ -187,6 +187,7 @@ func (s *Server) StartListen(tcpRequestChan chan<- netLayer.TCPRequestInfo, udpR s.stopped = false if s.devName == "" { + utils.Warn("tun: dev name not given, OS: " + runtime.GOOS) switch runtime.GOOS { case "darwin": s.devName = "utun5" @@ -195,6 +196,11 @@ func (s *Server) StartListen(tcpRequestChan chan<- netLayer.TCPRequestInfo, udpR case "liunx": s.devName = "vs_tun" } + + if s.devName != "" { + utils.Warn("tun: set tun dev name to " + s.devName) + + } } //由于我们目前完全使用 xjasonlyu/tun2socks 的 代码,需要注意,xjasonlyu/tun2socks 在