VicroCode
让代码创造价值
VicroCode是一个轻量级代码在线发布、交易平台,开箱即用,免部署、免服务器、免备案,支持接入智能体、通用管理系统、游戏等多种项目
稍候片刻,您可先学习AI编程手册
正在加载中...

市场信息

[程序员] 建议针对 Claude, ChatGPT 设置 hosts 文件,而 Surge 这些设置不读取 hosts 文件

/etc/hosts 127.0.0.1 api.anthropic.com 127.0.0.1 claude.ai 127.0.0.1 chatgpt.com 127.0.0.1 chat.openai.com 127.0.0.1 ws.chatgpt.

www.v2ex.com · 2026-09-16T06:39:13+00:00

• 请不要在回答技术问题时复制粘贴 AI 生成的内容 V2EX › 程序员 建议针对 Claude, ChatGPT 设置 hosts 文件,而 Surge 这些设置不读取 hosts 文件 ratazzi · PRO · ratazzi · 52 mins ago · 159 views /etc/hosts 127.0.0.1 api.anthropic.com 127.0.0.1 claude.ai 127.0.0.1 chatgpt.com 127.0.0.1 chat.openai.com 127.0.0.1 ws.chatgpt.com 然后 Surge 之类的设置不要读取 hosts 文件,这样只有在代理工作时才能正常访问,代理崩溃掉或者开机后启动顺序在 Claude ,ChatGPT 之后也没关系,避免直连 hosts Claude ChatGPT 3 replies • 2026-09-16 14:56:27 +08:00 1 deng1xia 46 mins ago 好想法!

2 terrancesiu 40 mins ago 手搓的 kill switch 功能,简单又好用。 3 coolcoffee 35 mins ago 已加入 adguardhome dns 重写规则。

返回 AI 市场导读

来源:v2ex.com