Sockopt: Fix Windows Multicast interface bind#4568
Merged
Conversation
Contributor
Author
|
测试可用。 {
"inbounds": [
{
"port": 53,
"listen": "::1",
"protocol": "dokodemo-door",
"settings": {
"address": "ff01::1", //or 224.0.0.1
"port": 53,
"network": "tcp,udp"
},
"streamSettings": {
"sockopt": {
"TcpKeepAliveIdle": -1
}
}
}
],
"outbounds": [
{
"protocol": "freedom",
"streamSettings": {
"sockopt": {
"TcpKeepAliveIdle": -1,
"interface": "s3"
}
}
}
],
"log": {
"loglevel": "debug",
"dnsLog": true
}
} |
Member
|
我看 Linux 上的代码似乎无需区分是否 multicast,macOS 呢? |
Contributor
Author
没有测试条件😇 |
Member
|
既然发现了这个问题,你看下 macOS 有没有类似的东西,直接加上应该没问题 |
Member
|
#4530 (comment) 那大概只有 Windows 上需要这个修复,16 和 17 行互换下位置 @xqzr 不过我刚发现 Linux 上也有个 IP_MULTICAST_IF,你看看 Linux 上现在的代码有没有问题? |
Member
|
Xray-core/transport/internet/sockopt_linux.go Lines 48 to 52 in 1685c61 就是说 Linux 上的 |
Contributor
Author
没问题 |
Contributor
Author
IPv6 优先😉 |
Member
|
请修改代码 @xqzr |
Interface miss multicast on Windowsinterface bind
interface bindinterface bind
RPRX
pushed a commit
that referenced
this pull request
Apr 19, 2025
1 task
maoxikun
pushed a commit
to maoxikun/Xray-core
that referenced
this pull request
Aug 23, 2025
XTLS#4568 (comment) (cherry picked from commit 52a2c63)
maoxikun
pushed a commit
to maoxikun/Xray-core
that referenced
this pull request
Aug 23, 2025
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
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.
No description provided.