mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-04 18:46:39 +00:00
fix: 修复发布机网关选择
This commit is contained in:
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
Block a user