mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[PR #2901] [CLOSED] Nathole #4655
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#4655
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?
📋 Pull Request Information
Original PR: https://github.com/fatedier/frp/pull/2901
Author: @shangweixiao
Created: 4/20/2022
Status: ❌ Closed
Base:
dev← Head:nathole📝 Commits (2)
9d4c96eoptimize NAT hole,support symmetric NAT958a4a2fixed a spelling error📊 Changes
11 files changed (+195 additions, -67 deletions)
View changed files
📝
client/proxy/proxy.go(+57 -26)📝
client/visitor.go(+54 -19)📝
cmd/frpc/sub/root.go(+1 -0)📝
cmd/frpc/sub/xtcp.go(+3 -0)📝
go.mod(+1 -0)📝
go.sum(+2 -0)📝
pkg/config/proxy.go(+7 -3)📝
pkg/config/visitor.go(+4 -1)📝
pkg/msg/msg.go(+8 -4)📝
pkg/nathole/nathole.go(+35 -14)📝
pkg/util/util/util.go(+23 -0)📄 Description
ref:#1795 #2376
使用XTCP进行NAT穿透,当对方是Symmetric NAT时不能复用对方与服务器之间的端口进行通信,这是Symmetric NAT的限制,因此目前XTCP成功率较低。但如果双方均是Symmetric NAT则肯定无法进行穿透。
穿透流程:
另外,支持在配置文件中使用stun_server配置STUN服务器,默认使用stun.voipstunt.com:3478。针对STUN检测较慢的现象,代码进行了优化,启动时只操作一次,也可以设置 stun_server = disable 禁用STUN。
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.