-
Notifications
You must be signed in to change notification settings - Fork 7.9k
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
增加批量从旧客户端导入服务器列表 #168
Comments
最近我也遇到了同样的需求。搜索一番之后看到这些 issue: #40 #58 #71 #82 #95 。 我一次无意中排查其他问题,得知 ShadowsocksX-NG 会把配置写到用户的 default 数据库中。于是,我们只要能够修改数据库中的数据,然后重启客户端,应该就可以满足我们的需求了。 # 首先将现有的配置导出
$ defaults export com.qiuyuzhou.ShadowsocksX-NG config.plist
# 将 plist 二进制转成可读的 json 文件
$ plutil -convert json -o config.json config.plist
# 执行完上面的步骤,你应该可以得到客户端的配置文件了。
# 之后,你对 config.json 文件进行编辑保存。
# 在修改完保存之后,把 json 文件转成 plist 格式的文件
$ plutil -convert xml1 config.json -o config.plist
# 检查 plist 文件是否 OK
$ plutil config.plist
# 当显示 OK 之后就可以将配置导入了
$ defaults import com.qiuyuzhou.ShadowsocksX-NG config.plist
# 之后就是重启客户端。
# 开始享受吧。 上面就是我总结出来的一种批量修改配置的方式。如果有什么问题,欢迎随时联系我 :) |
No plan. |
kuoruan
pushed a commit
to kuoruan/ShadowsocksX-NG
that referenced
this issue
Jul 28, 2017
the ping process thread-safe now
现在呢,怎么通过脚本的方式修改服务器配置 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
建议运行批量添加服务器或者从旧客户端导入服务器列表
The text was updated successfully, but these errors were encountered: