Skip to content

v1.2.0

Compare
Choose a tag to compare
@lingbopro lingbopro released this 14 May 11:36
· 0 commits to f6593949c94a1c0ccec192be7b047a75a275f8ac since this release
6d38d94

v1.2.0

更新来自PR #9

描述

分离代码,增加命令行交互

增加

在实际写入 HOSTS 文件之前,询问用户是否确认更新,根据用户输入 ("yes" 或 "no") 决定是否进行文件更新。
用上了readline

删减

更改

实现将写入 HOSTS 文件的代码和获取 IP 的代码分离。