mirror of
https://github.com/jumpserver/jumpserver.git
synced 2026-07-02 15:08:22 +00:00
perf: oracle, mongodb proxy native client method only vendor is jumpserver
This commit is contained in:
@@ -50,12 +50,15 @@ class NativeClient(TextChoices):
|
||||
Protocol.mysql: [cls.db_client, cls.db_guide],
|
||||
Protocol.mariadb: [cls.db_client, cls.db_guide],
|
||||
Protocol.redis: [cls.db_client, cls.db_guide],
|
||||
Protocol.mongodb: [cls.db_client, cls.db_guide],
|
||||
Protocol.oracle: [cls.db_client, cls.db_guide],
|
||||
Protocol.postgresql: [cls.db_client, cls.db_guide],
|
||||
Protocol.sqlserver: [cls.db_client, cls.db_guide],
|
||||
Protocol.vnc: [cls.vnc_client, cls.vnc_guide],
|
||||
}
|
||||
if settings.VENDOR.lower() == 'jumpserver':
|
||||
clients.update({
|
||||
Protocol.mongodb: [cls.db_client, cls.db_guide],
|
||||
Protocol.oracle: [cls.db_client, cls.db_guide],
|
||||
})
|
||||
return clients
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user