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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
在你的OpenClash上附加这么一条规则
- SRC-IP-CIDR,192.168.0.248/30,DIRECT
再使用以下脚本创建文件
ipswitch.sh
(仅适用于macOS,其他系统交给GPT帮你改)保存并赋予可执行权限
效果
在终端执行
即可切换Mac IP为
192.168.0.248
,于是匹配到- SRC-IP-CIDR,192.168.0.248/30,DIRECT
这种直通测速的方式,避免了手动去OpenClash里切换模式,也不影响现有其他连接的访问。
如果你喜欢DHCP
请参考Shell 脚本修改 Mac IP地址 - xinpureZhu - 博客园 (cnblogs.com)并让GPT帮你修改代码即可。
Beta Was this translation helpful? Give feedback.
All reactions