无多路复用版本
This commit is contained in:
@ -68,8 +68,10 @@ func handler(conn net.Conn, targetAddress string, fakeAddress string) {
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
go io.Copy(realConnection, conn)
|
||||
go io.Copy(conn, realConnection)
|
||||
|
||||
p := &PackAppData{Conn: conn}
|
||||
go io.Copy(realConnection, p)
|
||||
go io.Copy(p, realConnection)
|
||||
}
|
||||
|
||||
func processHandshake(src net.Conn, dst net.Conn, waitCh chan int) {
|
||||
|
Reference in New Issue
Block a user