shadowsocks

This commit is contained in:
midoks
2020-06-06 23:21:37 +08:00
parent ff7e063f09
commit d6cae70249
2 changed files with 7 additions and 0 deletions
+1
View File
@@ -4,6 +4,7 @@
<p class="bgw" onclick="pluginService('shadowsocks');">服务</p>
<p onclick="pluginInitD('shadowsocks');">自启动</p>
<p onclick="pluginConfig('shadowsocks');">配置修改</p>
<p onclick="pluginLogs('shadowsocks','','run_log');">日志</p>
<p onclick="readme();">说明</p>
</div>
<div class="bt-w-con pd15">
+6
View File
@@ -165,6 +165,10 @@ def initdUinstall():
os.remove(initd_bin)
return 'ok'
def getLog():
return '/var/log/shadowsocks.log'
if __name__ == "__main__":
func = sys.argv[1]
if func == 'status':
@@ -185,5 +189,7 @@ if __name__ == "__main__":
print initdInstall()
elif func == 'initd_uninstall':
print initdUinstall()
elif func == 'run_log':
print getLog()
else:
print 'error'