zyazhb / hosts-chooser Goto Github PK
View Code? Open in Web Editor NEWA cross-platform software to solve DNS pollution.
Home Page: https://zyazhb.github.io/Hosts-chooser
License: GNU General Public License v3.0
A cross-platform software to solve DNS pollution.
Home Page: https://zyazhb.github.io/Hosts-chooser
License: GNU General Public License v3.0
给一个可能有用的参考资料
On windows the signal API is very sparse, meaning we don't have SIGCHILD.
So we just check if we have a return code on our process object.
:param process:
:param delay:
:return:
clean没有指向 local和remote没有选项
参考代码
parser.add_argument("-r", help="Read a domain list", type=str)
if args.target:
if args.local:
domain, iplist = myutils.run_core(args.target, args.area)
else:
domain, iplist = myutils.run_remote_core(args.target, args.area)
elif args.r:
if args.local:
for domain in open(args.r):
domain, iplist = myutils.run_core(domain, args.area)
else:
for domain in open(args.r):
domain, iplist = myutils.run_remote_core(domain, args.area)
else:
parser.print_help()
if args.clean:
myutils.output_dic(domain, myutils.clean(iplist))
else:
parser.print_help()
这个bug应该多加一条判断分支即可
位于update_hosts中
Linux建议使用crontab实现
windows可以暂时直接写入hosts 定时还没想好怎么实现
尝试一下*东西
重写run部分 尝试将在线API改为本地检测
输出完成后抛出 CalledProcessError
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.