mieqq
知道原因了,官方文档有写:
Notice: If you enter an IP address or address range, you are only able to bypass the proxy when you connect to that host using that address, not when you connect to the host by a domain name that resolves to that address.
直接访问 192.168.50.0/24 范围内的地址可以被跳过,但如果是访问的域名解析到这个范围内就没法跳过了
==================================
原问题:
坛友你好,请教一个 skip-proxy
的问题;我有如下配置,想给 iOS 和 Mac 设备共用:
[General]
skip-proxy = 192.168.50.0/24
[Proxy]
🏖HomeProxy = snell, demo.sgddns, 6160, psk=password, version=1
[Proxy Group]
🏠 Home = ssid, default = 🏖 HomeProxy, "ASUS*" = 💠 DIRECT
[Rule]
IP-CIDR,192.168.50.0/24,🏠 Home,no-resolve
[Snell Server]
interface = 0.0.0.0
port = 6160
psk = password
obfs = off
其实就是那篇「轻松访问家中的网络服务」中的配置;
现在的问题在于,Surge Mac 必须删除
IP-CIDR,192.168.50.0/24,🏠 Home,no-resolve
不然就会造成无限请求回环(走了自己启动的 Snell Server);
但按道理来说 skip-proxy
如果生效,不应该走这里的匹配,我试了分别打开系统代理和增强模式,都没有用
是最近 Surge 又更新了什么吗?
实在没办法,我只能单独针对这一行写一个 module 给 iOS 用了,或者给 Surge Mac 连上无线网,这样它就会走直连而不是走 Snell Server