rename execcmd to shellrun

more_events
OpenGnSys Support Team 2020-03-09 17:24:42 +01:00 committed by Alvaro Neira Ayuso
parent a6d3b7915c
commit 5964e48df9
1 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ class restResponse():
return self.msg
class ogThread():
def execcmd(client, request, ogRest):
def shellrun(client, request, ogRest):
if not request.getrun():
response = restResponse(ogResponses.BAD_REQUEST)
client.send(response.get())
@ -341,7 +341,7 @@ class ogRest():
client.send(response.get())
def process_shellrun(self, client, request):
threading.Thread(target=ogThread.execcmd, args=(client, request, self,)).start()
threading.Thread(target=ogThread.shellrun, args=(client, request, self,)).start()
def process_session(self, client, request):
threading.Thread(target=ogThread.session, args=(client, request, self,)).start()