tun的tcp功能在mac上测试通过;修订代码;修复若干问题:

修正ReplaceSymbol函数
SelfListen时也打印Listen日志
修正machine的DefaultClient的赋值

添加tun示例文件以及路由指导
This commit is contained in:
e1732a364fed
2000-01-01 00:00:00 +00:00
parent db2e850b8b
commit 8bdcad9b6f
9 changed files with 98 additions and 22 deletions

View File

@@ -127,7 +127,7 @@ func (s *Server) StartListen(infoChan chan<- netLayer.TCPRequestInfo, udpInfoCha
Target: targetAddr,
}
if ce := utils.CanLogInfo("TProxy loop read got new tcp"); ce != nil {
if ce := utils.CanLogInfo("TProxy got new tcp"); ce != nil {
ce.Write(zap.String("->", targetAddr.String()))
}
if tm.Closed() {
@@ -175,7 +175,7 @@ func (s *Server) StartListen(infoChan chan<- netLayer.TCPRequestInfo, udpInfoCha
}
break
} else {
if ce := utils.CanLogInfo("TProxy loop read got new udp"); ce != nil {
if ce := utils.CanLogInfo("TProxy got new udp"); ce != nil {
ce.Write(zap.String("->", raddr.String()))
}
}