Merge remote-tracking branch 'origin/v3.5'

This commit is contained in:
Adolfo Gómez García 2021-12-22 13:37:06 +01:00
commit 26f45b429f
2 changed files with 4 additions and 1 deletions

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()

View File

@ -139,7 +139,7 @@ def getServicesData(
'id': idd(i),
'name': i.name,
'link': html.udsAccessLink(request, 'M' + meta.uuid, idd(i)),
'priority': 0,
'priority': i.priority,
}
for i in transports
]