mirror of https://github.com/jumpserver/jumpserver
perf: 发布机支持平台连接参数
parent
52922088a9
commit
2cc67634a4
|
@ -204,12 +204,14 @@ class ConnectionToken(JMSOrgBaseModel):
|
|||
|
||||
host, account, lock_key = bulk_get(host_account, ('host', 'account', 'lock_key'))
|
||||
gateway = host.domain.select_gateway() if host.domain else None
|
||||
platform = host.platform
|
||||
|
||||
data = {
|
||||
'id': lock_key,
|
||||
'applet': applet,
|
||||
'host': host,
|
||||
'gateway': gateway,
|
||||
'platform': platform,
|
||||
'account': account,
|
||||
'remote_app_option': self.get_remote_app_option()
|
||||
}
|
||||
|
|
|
@ -161,6 +161,7 @@ class ConnectTokenAppletOptionSerializer(serializers.Serializer):
|
|||
host = _ConnectionTokenAssetSerializer(read_only=True)
|
||||
account = _ConnectionTokenAccountSerializer(read_only=True)
|
||||
gateway = _ConnectionTokenGatewaySerializer(read_only=True)
|
||||
platform = _ConnectionTokenPlatformSerializer(read_only=True)
|
||||
remote_app_option = serializers.JSONField(read_only=True)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue