Fixed STOP "eating" on application stop

This commit is contained in:
Adolfo Gómez García 2021-12-21 15:58:46 +01:00
parent e1ccc62dab
commit 420b78d45d

View File

@ -79,6 +79,9 @@ class TunnelTicket(Handler):
# Take token from url
token = self._args[2][:48]
if not models.TunnelToken.validateToken(token):
if self._args[1][:4] == 'stop':
# "Eat" invalid stop requests, because Applications does not like them
return {}
logger.error('Invalid token %s from %s', token, self._request.ip)
raise AccessDenied()