mirror of
https://github.com/dkmstr/openuds.git
synced 2025-01-03 01:17:56 +03:00
Added merged from v1.9 that did not goes as expected... :)
This commit is contained in:
parent
4bc6d88006
commit
1c1003eb41
@ -555,7 +555,16 @@ class UserServiceManager(object):
|
|||||||
raise ServiceInMaintenanceMode()
|
raise ServiceInMaintenanceMode()
|
||||||
|
|
||||||
logger.debug('Found service: {0}'.format(userService))
|
logger.debug('Found service: {0}'.format(userService))
|
||||||
|
if idTransport is None: # Find a suitable transport
|
||||||
|
for v in userService.deployed_service.transports.order_by('priority'):
|
||||||
|
if v.validForIp(srcIp):
|
||||||
|
idTransport = v.uuid
|
||||||
|
break
|
||||||
|
|
||||||
|
try:
|
||||||
trans = Transport.objects.get(uuid=idTransport)
|
trans = Transport.objects.get(uuid=idTransport)
|
||||||
|
except Exception:
|
||||||
|
raise InvalidServiceException()
|
||||||
|
|
||||||
# Ensures that the transport is allowed for this service
|
# Ensures that the transport is allowed for this service
|
||||||
if trans not in userService.deployed_service.transports.all():
|
if trans not in userService.deployed_service.transports.all():
|
||||||
|
Loading…
Reference in New Issue
Block a user