Repository navigation
feat: 新增隧道 DNS 设置 - #224
Open
weicaixian86 wants to merge 1 commit into
Open
weicaixian86 wants to merge 1 commit into
weicaixian86 wants to merge 1 commit into
Conversation
支持在手动配置中开启「DNS 走隧道」,把指定的 DNS 服务器应用到虚拟网卡 接口 DNS(Windows 通过 netsh 设置接口 DNS),实现隧道内应用统一走 VNT 对端(如路由器)的 DNS,规避运营商 DNS 污染。 - 配置项:新增 dns_tunnel(默认 false) 与 dns(服务器列表,主备顺序), 仅在非默认时写入,保持旧配置向后兼容;严格校验 IPv4。 - 核心:建卡/重建时按配置应用接口 DNS;运行期变更热更新(失败降级为日志)。 变更判定纳入 needs_network_change/needs_vpn_rebuild/device_restart。 - 跨平台:接口 DNS 仅 Windows 实现,其余桌面平台空实现;effective_dns 不限定平台以保证所有目标可编译。 - 宿主:args_config / vnt-jni / vnt-web 同步读写 dns 字段,/api/info 与 nextEvent 下发 dns 摘要。 - 前端:配置编辑器新增「隧道 DNS」分组(开关、主备行、增删、IPv4 校验), 网络详情展示 DNS 摘要;补充 configHelp 与 TOML 模板。
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.
支持在手动配置中开启「DNS 走隧道」,把指定的 DNS 服务器应用到虚拟网卡
接口 DNS(Windows 通过 netsh 设置接口 DNS),实现隧道内应用统一走 VNT
对端(如路由器)的 DNS,规避运营商 DNS 污染。