Update diagnose.

This commit is contained in:
Qiu Yuzhou
2019-09-04 18:25:19 +08:00
parent aabdc77c3c
commit ac3ae0e4de

View File

@ -78,15 +78,18 @@ func diagnose() -> String {
strs.append("$ ls -l ~/.ShadowsocksX-NG/\n") strs.append("$ ls -l ~/.ShadowsocksX-NG/\n")
strs.append(shell("ls", "-l", NSHomeDirectory() + "/.ShadowsocksX-NG/")) strs.append(shell("ls", "-l", NSHomeDirectory() + "/.ShadowsocksX-NG/"))
strs.append("-----------------------------------\n") strs.append("-----------------------------------\n")
strs.append("$ ls -l /Library/Application Support/ShadowsocksX-NG/") strs.append("$ ls -l /Library/Application Support/ShadowsocksX-NG/\n")
strs.append(shell("ls", "-l", "/Library/Application Support/ShadowsocksX-NG/")) strs.append(shell("ls", "-l", "/Library/Application Support/ShadowsocksX-NG/"))
strs.append("-----------------------------------\n") strs.append("-----------------------------------\n")
strs.append("$ lsof -PiTCP -sTCP:LISTEN") strs.append("$ lsof -PiTCP -sTCP:LISTEN\n")
strs.append(shell("lsof", "-PiTCP", "-sTCP:LISTEN")) strs.append(shell("lsof", "-PiTCP", "-sTCP:LISTEN"))
strs.append("-----------------------------------\n") strs.append("-----------------------------------\n")
strs.append("$ ifconfig") strs.append("$ ifconfig\n")
strs.append(shell("ifconfig")) strs.append(shell("ifconfig"))
strs.append("-----------------------------------\n") strs.append("-----------------------------------\n")
strs.append("$ launchctl list | grep com.qiuyuzhou.\n")
strs.append(shell("bash", "-c", "launchctl list | grep com.qiuyuzhou."))
strs.append("-----------------------------------\n")
let output = strs.joined() let output = strs.joined()
return output return output