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

feat: only use one query for concurrent dns query #48 #49

Merged
merged 2 commits into from
Nov 15, 2023

Conversation

cxz66666
Copy link
Collaborator

提供一种可行的方法解决 #48

  • 通过sync.Map 支持并发的map 对每个host管理一把锁,请求需要抢到锁后才能发起dns解析请求,否则只能等待并从cache中读,如果cache中没有则退回到备用dns
  • 优化对hijack-dns的日志打印,默认不输出hijack dns信息

@Mythologyli Mythologyli merged commit d98c926 into main Nov 15, 2023
19 checks passed
@cxz66666 cxz66666 deleted the concur-dns-request branch November 18, 2023 07:56
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.

2 participants