mirror of https://github.com/jumpserver/jumpserver
perf: 更新发布机的单用户单会话策略
parent
dd85e2d74f
commit
e762a5d8ae
|
@ -194,7 +194,7 @@ class Applet(JMSBaseModel):
|
|||
host = self.select_host(user)
|
||||
if not host:
|
||||
return None
|
||||
host_concurrent = str(host.deploy_options.get('RDS_fSingleSessionPerUser', 0)) == '1'
|
||||
host_concurrent = str(host.deploy_options.get('RDS_fSingleSessionPerUser', 0)) == '0'
|
||||
can_concurrent = (self.can_concurrent or self.type == 'web') and host_concurrent
|
||||
|
||||
accounts = host.accounts.all().filter(is_active=True, privileged=False)
|
||||
|
|
|
@ -24,6 +24,10 @@ class DeployOptionsSerializer(serializers.Serializer):
|
|||
(4, _('Per Session')),
|
||||
(2, _('Per Device')),
|
||||
)
|
||||
|
||||
# 单用户单会话,
|
||||
# 默认值为1,表示启用状态(组策略默认值),此时单用户只能有一个会话连接
|
||||
# 如果改为 0 ,表示禁用状态,此时可以单用户多会话连接
|
||||
SESSION_PER_USER = (
|
||||
(0, _("Disabled")),
|
||||
(1, _("Enabled")),
|
||||
|
|
Loading…
Reference in New Issue