wzdnzd / ShadowsocksX-NG-R

ShadowsocksX-NG-R: Shadowsocks(R) Client for MacOS

Home Page:https://github.com/wzdnzd/ShadowsocksX-NG-R

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BUG: 无法访问网路的问题 缺少参数 -w

Hootrix opened this issue · comments

commented

System and Shadowsocksx-NG-R8 version:

  • macOS 10.15.5
  • Shadowsocksx-NG-R8 1.5.1

程序无法启动代理,未找到log日志。
追查启动代码~/Library/LaunchAgents/com.qiuyuzhou.shadowsocksX-NG.local.plist: Service is disabled

发现start_privoxy.sh、start_ss_local.sh、stop_privoxy.sh、stop_ss_local.sh这些启动脚本中缺少参数 -w 导致的问题。

man launchctl

-w       Overrides the Disabled key and sets it to false or true
                       for the load and unload subcommands respectively. In
                       previous versions, this option would modify the config-
                       uration file. Now the state of the Disabled key is
                       stored elsewhere on- disk in a location that may not be
                       directly manipulated by any process other than launchd.

https://knowledge.broadcom.com/external/article/163411/service-is-disabled-message-when-attempt.html

In this case the service has been disabled and cannot launch until the service is re-enabled. This is likely the result of the service having been unloaded using launchctl in conjunction with the -w switch, which will disable the service. This condition can remain even if the software is uninstalled and reinstalled

https://blog.haitianhome.com/mac-ssr-no-connection.html