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

fix: set DNS server when err contains loopback server #748

Merged
merged 4 commits into from
Jun 21, 2023

Conversation

@jeessy2
Copy link
Owner

jeessy2 commented Jun 21, 2023

能直接在代码里判断是不是dns错误,如果是并未设置dns, 默认设置一个dns并提示?

@WaterLemons2k WaterLemons2k changed the title docs: android needs a custom DNS server fix: set DNS server when is Termux Jun 21, 2023
@WaterLemons2k
Copy link
Contributor Author

是 Termux 且未设置 DNS 服务器则设置 DNS 服务器为 1.1.1.1

如果觉得不好就改为 client.Geterr 包含 [::1]:53 时设置 DNS 服务器。

@jeessy2
Copy link
Owner

jeessy2 commented Jun 21, 2023

包含[::1]:53 的吧。万一后面又出一些android的终端?

@WaterLemons2k WaterLemons2k changed the title fix: set DNS server when is Termux fix: set DNS server when err contains [::1]:53 Jun 21, 2023
dns/wait_net.go Show resolved Hide resolved
@WaterLemons2k WaterLemons2k changed the title fix: set DNS server when err contains [::1]:53 fix: set DNS server when err contains loopback server Jun 21, 2023
Copy link
Owner

@jeessy2 jeessy2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jeessy2 jeessy2 merged commit 4d33865 into jeessy2:master Jun 21, 2023
@WaterLemons2k WaterLemons2k deleted the dns branch June 21, 2023 09:52
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

Successfully merging this pull request may close these issues.

[Bug]:在手机荣耀8上无法正常运行
2 participants