diff --git a/.github/workflows/jms-build-test.yml b/.github/workflows/jms-build-test.yml index 0f5309cac..044e3c016 100644 --- a/.github/workflows/jms-build-test.yml +++ b/.github/workflows/jms-build-test.yml @@ -21,6 +21,9 @@ jobs: push: false tags: jumpserver/core:test file: Dockerfile + build-args: | + APT_MIRROR=http://deb.debian.org + PIP_MIRROR=https://pypi.org/simple cache-from: type=gha cache-to: type=gha,mode=max diff --git a/apps/terminal/connect_methods.py b/apps/terminal/connect_methods.py index 1ad9fde6c..c2d69322c 100644 --- a/apps/terminal/connect_methods.py +++ b/apps/terminal/connect_methods.py @@ -262,6 +262,9 @@ class ConnectMethodUtil: listen = component_protocol['listen'] for listen_protocol in listen: # Native method + if component == TerminalType.koko and protocol.value != Protocol.ssh: + # koko 仅支持 ssh 的 native 方式,其他数据库的 native 方式不提供 + continue methods[protocol.value].extend([ { 'component': component.value,