mirror of
https://github.com/fatedier/frp.git
synced 2025-07-09 23:41:50 +07:00
feat: Support user specify udp packet size in config (#1794)
This commit is contained in:
@ -196,7 +196,7 @@ func (pxy *UdpProxy) Run() (remoteAddr string, err error) {
|
||||
// Response will be wrapped to be forwarded by work connection to server.
|
||||
// Close readCh and sendCh at the end.
|
||||
go func() {
|
||||
udp.ForwardUserConn(udpConn, pxy.readCh, pxy.sendCh)
|
||||
udp.ForwardUserConn(udpConn, pxy.readCh, pxy.sendCh, int(pxy.serverCfg.UdpPacketSize))
|
||||
pxy.Close()
|
||||
}()
|
||||
return remoteAddr, nil
|
||||
|
Reference in New Issue
Block a user