mirror of
https://github.com/fatedier/frp.git
synced 2025-07-27 15:45:39 +00:00
support xtcp for making nat hole
This commit is contained in:
@@ -20,7 +20,7 @@ import (
|
||||
|
||||
"github.com/fatedier/frp/utils/log"
|
||||
|
||||
kcp "github.com/xtaci/kcp-go"
|
||||
kcp "github.com/fatedier/kcp-go"
|
||||
)
|
||||
|
||||
type KcpListener struct {
|
||||
@@ -85,3 +85,7 @@ func (l *KcpListener) Close() error {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func NewKcpConnFromUdp(conn *net.UDPConn, connected bool, raddr string) (net.Conn, error) {
|
||||
return kcp.NewConnEx(1, connected, raddr, nil, 10, 3, conn)
|
||||
}
|
||||
|
Reference in New Issue
Block a user