mirror of
https://gitee.com/konyshe/goodlink.git
synced 2025-12-24 08:13:00 +08:00
u
This commit is contained in:
@@ -28,6 +28,10 @@ type TunnelServer struct {
|
||||
}
|
||||
|
||||
func (c *TunnelServer) process_server2(conn *net.UDPConn, tun_remote_ip string, tun_remote_port int, send_data []byte) {
|
||||
if tun_remote_port <= 0 {
|
||||
return
|
||||
}
|
||||
|
||||
for i := 0; i <= 16; i++ {
|
||||
go process_send(conn, tun_remote_ip, tun_remote_port+i, send_data, &c.m_process_stop)
|
||||
}
|
||||
@@ -118,6 +122,8 @@ func (c *TunnelServer) ProcessServerChild(tun_local_addr, tun_remote_addr string
|
||||
c.process_server2(conn, clientIP, clientPort+i, send_data)
|
||||
}
|
||||
|
||||
time.Sleep(500 * time.Millisecond)
|
||||
|
||||
if !c.m_process_stop {
|
||||
c.process_server4(conn, clientIP, send_data)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user