Rev881, Restrict serverShutdown to admin sites, Avoid redirect cache when clicking trayicon
This commit is contained in:
parent
687a848292
commit
c11d4f2632
4 changed files with 5 additions and 5 deletions
|
@ -8,7 +8,7 @@ class Config(object):
|
|||
|
||||
def __init__(self, argv):
|
||||
self.version = "0.3.6"
|
||||
self.rev = 879
|
||||
self.rev = 881
|
||||
self.argv = argv
|
||||
self.action = None
|
||||
self.config_file = "zeronet.conf"
|
||||
|
|
|
@ -154,7 +154,7 @@ class UiWebsocket(object):
|
|||
|
||||
admin_commands = (
|
||||
"sitePause", "siteResume", "siteDelete", "siteList", "siteSetLimit", "siteClone",
|
||||
"channelJoinAllsite", "serverUpdate", "serverPortcheck", "certSet", "configSet"
|
||||
"channelJoinAllsite", "serverUpdate", "serverPortcheck", "serverShutdown", "certSet", "configSet"
|
||||
)
|
||||
|
||||
if cmd == "response": # It's a response to a command
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue