mirror of https://github.com/jumpserver/jumpserver
Merge pull request #10944 from jumpserver/pr@dev@perf_add_protocol_support
perf: 修改 protocols 默认值pull/10945/head^2
commit
6f1ab1e09a
|
@ -185,7 +185,7 @@ class Protocol(ChoicesMixin, models.TextChoices):
|
||||||
},
|
},
|
||||||
'script': {
|
'script': {
|
||||||
'type': 'text',
|
'type': 'text',
|
||||||
'default': '',
|
'default': [],
|
||||||
'label': _('Script'),
|
'label': _('Script'),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,6 +34,7 @@ class WebMethod(TextChoices):
|
||||||
Protocol.clickhouse: [cls.web_cli],
|
Protocol.clickhouse: [cls.web_cli],
|
||||||
|
|
||||||
Protocol.k8s: [cls.web_cli],
|
Protocol.k8s: [cls.web_cli],
|
||||||
|
Protocol.chatgpt: [cls.web_gui],
|
||||||
Protocol.http: []
|
Protocol.http: []
|
||||||
}
|
}
|
||||||
if not settings.XPACK_ENABLED:
|
if not settings.XPACK_ENABLED:
|
||||||
|
|
Loading…
Reference in New Issue