Update index.py

pull/5/head
midoks 4 years ago
parent 3b6d50661b
commit 21209a75d8
  1. 9
      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]

Loading…
Cancel
Save