Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修改etc/hosts无法生效问题 #515

Closed
xx-li opened this issue May 27, 2023 · 2 comments
Closed

修改etc/hosts无法生效问题 #515

xx-li opened this issue May 27, 2023 · 2 comments

Comments

@xx-li
Copy link

xx-li commented May 27, 2023

环境

问题

修改vps的etc/hosts, 添加一行'172.31.255.2 chat.openai.com',执行ping后可以看到hosts修改已经生效。但是通过client代理访问时,vps本地etc/hosts的设置无法生效,请问我应该如何处理,让naiveproxy代理时,特定的域名走特定的IP进行访问?

@klzgrad
Copy link
Owner

klzgrad commented May 27, 2023

client访问时,进行这个域名解析动作的是caddy server,应该重启caddy才能让服务器上的hosts生效

@klzgrad klzgrad closed this as completed May 27, 2023
@xx-li
Copy link
Author

xx-li commented May 27, 2023

我已经重启了vps,还是不行。 不知道是不是passwall把dns这块接管了,就没有走到caddy的域名解析?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants