You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 5, 2025. It is now read-only.
Verify steps
操作系统
Windows
系统版本
Win11
发生问题 mihomo-party 版本
v1.5.12
描述
匹配到使用代理(非直连)规则的域名,不会读取系统hosts,勾选【使用系统Hosts】也不生效.
重现方式
场景:
我是一名开发人员,我的开发环境在国内公司内网,生产环境在境外,
我们有一个域名,如www.abc.com
我使用switch hosts进行环境切换:
开发环境配置如下:
2.2.2.2 www.abc.com # (假设2.2.2.2是我们的一个内网IP,我们希望进行直连访问)
生产环境的配置中没有关于www.abc.com的配置,我们需要使用dns解析进行代理访问。
我在覆盖脚本中设置这个域名走代理
config.rules.unshift("DOMAIN,www.abc.com,proxy");
1 当我切换到开发环境,无法正常访问2.2.2.2,它不会读取switch hosts修改后的hosts文件。
2 切换到正式环境是没有问题的,可以正常访问生产环境(解析正确)。
希望可以在解析需要代理访问的域名前先查询系统host。
The text was updated successfully, but these errors were encountered: