perf: native method 优化 (#9566)

* perf: native method 优化

* perf: update docker action test

---------

Co-authored-by: Eric <xplzv@126.com>
pull/9567/head
fit2bot 2 years ago committed by GitHub
parent 1ec20a8f98
commit 9339cd271a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -21,6 +21,9 @@ jobs:
push: false push: false
tags: jumpserver/core:test tags: jumpserver/core:test
file: Dockerfile file: Dockerfile
build-args: |
APT_MIRROR=http://deb.debian.org
PIP_MIRROR=https://pypi.org/simple
cache-from: type=gha cache-from: type=gha
cache-to: type=gha,mode=max cache-to: type=gha,mode=max

@ -262,6 +262,9 @@ class ConnectMethodUtil:
listen = component_protocol['listen'] listen = component_protocol['listen']
for listen_protocol in listen: for listen_protocol in listen:
# Native method # Native method
if component == TerminalType.koko and protocol.value != Protocol.ssh:
# koko 仅支持 ssh 的 native 方式,其他数据库的 native 方式不提供
continue
methods[protocol.value].extend([ methods[protocol.value].extend([
{ {
'component': component.value, 'component': component.value,

Loading…
Cancel
Save