From ac3ae0e4de4c85d596fe55e323af0336e380c4d3 Mon Sep 17 00:00:00 2001 From: Qiu Yuzhou Date: Wed, 4 Sep 2019 18:25:19 +0800 Subject: [PATCH] Update diagnose. --- ShadowsocksX-NG/Diagnose.swift | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ShadowsocksX-NG/Diagnose.swift b/ShadowsocksX-NG/Diagnose.swift index ac31d51..84c399f 100644 --- a/ShadowsocksX-NG/Diagnose.swift +++ b/ShadowsocksX-NG/Diagnose.swift @@ -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