Sockopt: Fix Windows UDP interface bind; Allow Linux customSockopt work for UDP#4504
Merged
Sockopt: Fix Windows UDP interface bind; Allow Linux customSockopt work for UDP#4504
interface bind; Allow Linux customSockopt work for UDP#4504Conversation
Member
|
我记得之前我们讨论过,link 你还能找到吗 |
Member
Author
|
windows sockopt我记得我应该没参与 这个是draft的原因是xq说还是没用 估计还得看 |
Member
Member
Author
|
OKK 没有问题了 |
RPRX
reviewed
Mar 21, 2025
Member
Member
Author
|
network放到1? |
Member
|
话说这个 network 就是为了区分 v4 和 v6?有必要吗 |
Member
|
我感觉既然 level 已经区分了 tcp 和 udp,如果再用个 network 来区分会有点乱,可以改成只区分 v4 v6 |
Member
|
等下,好像也不重复,如果 |
Member
Author
对着udp socket操作类似tfo这样的东西大概会刷堆err log, syscall可不认识level 它只会把这几个整数抛给系统然后还个err回来 |
interface bind, Allow customSockopt work in UDP
interface bind, Allow customSockopt work in UDPinterface bind, Allow customSockopt work for UDP
interface bind, Allow customSockopt work for UDPinterface bind; Allow customSockopt work for UDP
Member
|
用逗号分隔还是有点怪,以后用分号吧 |
interface bind; Allow customSockopt work for UDPinterface bind; Allow Linux customSockopt work for UDP
Member
|
#4571 (comment) 我觉得关于 |
Member
Author
|
这个sockopt的机制apply失败只会报错不会导致连接失败 |
Member
|
|
RPRX
pushed a commit
that referenced
this pull request
Apr 18, 2025
* Sockopt: Add custom sockopt on Windows & Darwin * fix windows udp by the way * use resolved addr #4504 (comment)
1 task
maoxikun
pushed a commit
to maoxikun/Xray-core
that referenced
this pull request
Aug 23, 2025
* Sockopt: Add custom sockopt on Windows & Darwin * fix windows udp by the way * use resolved addr XTLS#4504 (comment) (cherry picked from commit 5f3ae64)
it2konst
pushed a commit
to it2konst/gametunnel-core
that referenced
this pull request
Mar 1, 2026
it2konst
pushed a commit
to it2konst/gametunnel-core
that referenced
this pull request
Mar 1, 2026
* Sockopt: Add custom sockopt on Windows & Darwin * fix windows udp by the way * use resolved addr XTLS#4504 (comment)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
字面意思 老的代码里对ipv4的判断只使用了tcp4 导致udp4漏判进入v6处理流程
以及很久之前提到的 customSockopt 移出 isTCPSocket 作用区允许它操作udp
作为扩展 新增了一个network选项为 customSockopt 指定它需要操作的网络栈