mirror of
https://github.com/e1732a364fed/v2ray_simple.git
synced 2025-12-24 13:27:56 +08:00
修正代码
This commit is contained in:
@@ -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 在
|
||||
|
||||
Reference in New Issue
Block a user