mirror of https://github.com/jumpserver/jumpserver
fix: 修复发布机网关选择
parent
ef0c2f41ac
commit
4899f6bb69
|
@ -191,7 +191,7 @@ class ConnectionToken(JMSOrgBaseModel):
|
||||||
raise JMSException({'error': 'No host account available'})
|
raise JMSException({'error': 'No host account available'})
|
||||||
|
|
||||||
host, account, lock_key, ttl = bulk_get(host_account, ('host', 'account', 'lock_key', 'ttl'))
|
host, account, lock_key, ttl = bulk_get(host_account, ('host', 'account', 'lock_key', 'ttl'))
|
||||||
gateway = host.gateway.select_gateway() if host.domain else None
|
gateway = host.domain.select_gateway() if host.domain else None
|
||||||
|
|
||||||
data = {
|
data = {
|
||||||
'id': account.id,
|
'id': account.id,
|
||||||
|
|
Loading…
Reference in New Issue