mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-29 06:35:24 +00:00
feat: store rdp, vnc and telnet logins in a generic per-protocol table
This commit is contained in:
1 parent
e0c30a4e6f
commit
bba06f7ff6
107 files changed
+18750
-1224
No files matched your search
@@ -1692,6 +1692,12 @@ export function createMockCtx(
|
||||
},
|
||||
resolveHostProtocol: async (hostId, protocol) => {
|
||||
require("credentials:read");
|
||||
const declared = ctx.manifest.contributes?.protocols;
|
||||
if (declared && !declared.some((entry) => entry.id === protocol)) {
|
||||
throw new Error(
|
||||
`Plugin ${pluginId} did not declare protocol "${protocol}" in contributes.protocols`,
|
||||
);
|
||||
}
|
||||
return ctx.credentials.resolveHostProtocol(hostId, protocol);
|
||||
},
|
||||
registerSecretResolver: (scheme, resolve) => {
|
||||
|
||||
Reference in new issue
Block a user