From 21209a75d8f3d60dbfae804922f48c376301249c Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 29 Jan 2021 16:52:54 +0800 Subject: [PATCH] Update index.py --- plugins/socket5/index.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/plugins/socket5/index.py b/plugins/socket5/index.py index 775a147a6..13ebf7ec1 100755 --- a/plugins/socket5/index.py +++ b/plugins/socket5/index.py @@ -88,8 +88,7 @@ def start(): return "Apple Computer does not support" data = mw.execShell('service ss5 start') - print(data) - if data[0] == '': + if data[1] == '': return 'ok' return data[1] @@ -99,7 +98,7 @@ def stop(): return "Apple Computer does not support" data = mw.execShell('service ss5 stop') - if data[0] == '': + if data[1] == '': return 'ok' return data[1] @@ -109,14 +108,14 @@ def restart(): return "Apple Computer does not support" data = mw.execShell('service ss5 restart') - if data[0] == '': + if data[1] == '': return 'ok' return data[1] def reload(): data = mw.execShell('service ss5 reload') - if data[0] == '': + if data[1] == '': return 'ok' return data[1]