Update diagnose.
This commit is contained in:
@ -78,15 +78,18 @@ func diagnose() -> String {
|
||||
strs.append("$ ls -l ~/.ShadowsocksX-NG/\n")
|
||||
strs.append(shell("ls", "-l", NSHomeDirectory() + "/.ShadowsocksX-NG/"))
|
||||
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("-----------------------------------\n")
|
||||
strs.append("$ lsof -PiTCP -sTCP:LISTEN")
|
||||
strs.append("$ lsof -PiTCP -sTCP:LISTEN\n")
|
||||
strs.append(shell("lsof", "-PiTCP", "-sTCP:LISTEN"))
|
||||
strs.append("-----------------------------------\n")
|
||||
strs.append("$ ifconfig")
|
||||
strs.append("$ ifconfig\n")
|
||||
strs.append(shell("ifconfig"))
|
||||
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()
|
||||
return output
|
||||
|
Reference in New Issue
Block a user