Merge pull request #10944 from jumpserver/pr@dev@perf_add_protocol_support

perf: 修改 protocols 默认值
pull/10945/head^2
老广 2023-07-11 18:00:23 +08:00 committed by GitHub
commit 6f1ab1e09a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -185,7 +185,7 @@ class Protocol(ChoicesMixin, models.TextChoices):
},
'script': {
'type': 'text',
'default': '',
'default': [],
'label': _('Script'),
}
}

View File

@ -34,6 +34,7 @@ class WebMethod(TextChoices):
Protocol.clickhouse: [cls.web_cli],
Protocol.k8s: [cls.web_cli],
Protocol.chatgpt: [cls.web_gui],
Protocol.http: []
}
if not settings.XPACK_ENABLED: