Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议添加对SRV记录的支持 #83

Open
ie123610 opened this issue May 5, 2024 · 1 comment
Open

建议添加对SRV记录的支持 #83

ie123610 opened this issue May 5, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@ie123610
Copy link

ie123610 commented May 5, 2024

希望能支持解析SRV记录 以兼容外置STUN穿透

若一节点运行在全锥型NAT后面,则可通过一般的STUN穿透持续开放一个端口
任何其他客户端都可以直接连接 无需再次进行打洞与正常公网几乎没有区别
即使另一节点所在的网络其完全禁止UDP 也可以使用TCP直接连接上

唯一的问题是STUN穿透所获得的端口号是不固定的
过一段时间会发生变换而且变换时间也是不固定的
将新端口号通知给其他节点是一个难点

但SRV记录可以解决这个问题
其记录值中包括地址 协议 (TCP/UDP)以及最重要的端口号
通过更新SRV记录即可通知其他节点端口已发生变换

@KKRainbow
Copy link
Member

了解,感觉是个合理的需求,可以做

@KKRainbow KKRainbow added the enhancement New feature or request label May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants