Repository navigation
TUN inbound: IPv6 entries in dns exit the core on Windows when IPv6 cannot be set up, as in gateway and autoSystemRoutingTable - #7332
Conversation
…ows when IPv6 cannot be set up, as in `gateway` and `autoSystemRoutingTable` Follow-up to #7325: an IPv6 server in dns now asks for IPv6 as well. When the adapter has no IPv6 interface, or refuses its IPv6 DNS servers, the TUN fails to start instead of starting without them. Without IPv6 in any of the three, both are still skipped: the IPv6 DNS servers that Xray sets on every start are none then. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
这和回退到 #7325 之前的行为有什么区别? |
Setting no IPv6 DNS in the So before #7325, on some systems with globally disabled IPv6 or where changing IPv6 settings is prohibited, we encountered an error when setting up the TUN, because Xray tried to clear IPv6 DNS that doesn't exist at all or that we don't have access to. Now, with this PR, when users don't set IPv6 at all (in In #7325, we only looked at |
|
也就是说 TUN 我会先合并这个 PR,但接着 #7325 (comment) 最后一行,我觉得同一份 TUN 配置不能通用的话有点麻烦,改成读取注册表? |
dns keep the TUN from starting on Windows when IPv6 cannot be set up, as in gateway and autoSystemRoutingTabledns exit the core on Windows when IPv6 cannot be set up, as in gateway and autoSystemRoutingTable
also we should add i ask opus to implement this idea in next PR ... |
|
@patterniha 文档 XTLS/Xray-docs-next#903 可以改成“建议至少配置"dns"和"misconfigtun"”, |
|
aetrher |
…temWfpBlockLeak` #7332 (comment) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…temWfpBlockLeak` XTLS/Xray-core#7332 (comment) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…onents` turns IPv6 off, with "misconfigtun" blocking IPv6 then #7341 (comment) IPv6 entries are no longer left out. With IPv6 turned off by DisabledComponents (0x10, the non-tunnel interfaces, the TUN among them, as in 0xFF), IPv6 is set up as usual, and errors doing so, clearing its DNS servers included, are only logged; otherwise they exit, also for a config without IPv6 entries, which replaces the skips of #6874, #7325 and #7332. "misconfigtun" then blocks IPv6 outside the TUN whatever the routes, as IPv6 still works until the reboot that applies the value. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… `DisabledComponents` turns IPv6 off, with "misconfigtun" blocking IPv6 then (#7341) #7325 (comment) #7332 (comment) #7341 (comment) Replaces #7332, #7325 and #6874 --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…outingTable`) instead of exiting on Windows when `DisabledComponents` turns IPv6 off, with `autoSystemWfpBlockLeak`'s "misconfigtun" blocking IPv6 then (#7341) #7325 (comment) #7332 (comment) #7341 (comment) Replaces #7332, #7325 and #6874 --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
#7325 (comment)
An IPv6 server in
dnsnow counts like IPv6 ingatewayandautoSystemRoutingTable: when IPv6 can't be set up, the TUN doesn't start, instead of silently dropping that server.