mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #1010] protocol=kcp 参数的意义是什么? #796
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#796
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Creling on GitHub (Dec 16, 2018).
Original GitHub issue: https://github.com/fatedier/frp/issues/1010
在
frpc.ini中设置了protocol=kcp但是在范围端口映射时,如果:
会报错。
也就是说端口映射的类型只能写tcp/udp,那么protocol=kcp 究竟有什么用?
@shaobosong commented on GitHub (Dec 16, 2018):
让服务器和客户端之间用udp端口走kcp流量
@Creling commented on GitHub (Dec 16, 2018):
那么如果说我想达到“利用kcp加速服务器与客户端之间的连接”这个效果,这里的type我要如何填写?写UDP么?【我的服务本身是tcp协议】
@shaobosong commented on GitHub (Dec 17, 2018):
kcp协议只能用在服务端与客户端之间(我没记错的话),服务端与个人PC之间(你自己电脑)只能使用TCP或者udp协议,也就是frpc.ini的[...]里代理的服务不能有kcp,如果这里有kcp协议,个人PC也得有相应的kcp解释两者才能通信,但实际上没有,所以自己的服务继续写tcp,frpc.ini的common写protocol = kcp,frps.ini里common写kcp_bind_port=port_num(可以和原本的端口号一致)
@fatedier commented on GitHub (Dec 17, 2018):
根据代码理解。