mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-23 08:31:49 +00:00
fix: honor SSH agent opt-out
This commit is contained in:
1 parent
7cb722a5c5
commit
0046291376
14 files changed
+61
-13
No files matched your search
+3
-1
@@ -149,7 +149,9 @@ export const resolveBridgeSshAgentAuth = (
|
||||
addKeysToAgent?: string;
|
||||
useKeychain?: boolean;
|
||||
} => {
|
||||
if (host.useSshAgent !== true || Boolean(certificate?.trim())) return {};
|
||||
if (certificate?.trim()) return {};
|
||||
if (host.useSshAgent === false) return { useSshAgent: false };
|
||||
if (host.useSshAgent !== true) return {};
|
||||
return {
|
||||
useSshAgent: true,
|
||||
identityAgent: host.identityAgent,
|
||||
|
||||
Reference in new issue
Block a user