mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-18 05:43:38 +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
@@ -189,11 +189,16 @@ const HostDetailsPanel: React.FC<HostDetailsPanelPropsWithResize> = ({
|
||||
|
||||
useEffect(() => {
|
||||
if (form.agentForwarding || form.useSshAgent) {
|
||||
checkSshAgent(form.useSshAgent ? form.identityAgent : undefined).then(setSshAgentStatus);
|
||||
checkSshAgent({
|
||||
identityAgent: form.useSshAgent ? form.identityAgent : undefined,
|
||||
hostname: form.hostname,
|
||||
port: form.port,
|
||||
username: form.username,
|
||||
}).then(setSshAgentStatus);
|
||||
} else {
|
||||
setSshAgentStatus(null);
|
||||
}
|
||||
}, [form.agentForwarding, form.useSshAgent, form.identityAgent, checkSshAgent]);
|
||||
}, [form.agentForwarding, form.useSshAgent, form.identityAgent, form.hostname, form.port, form.username, checkSshAgent]);
|
||||
|
||||
const [groupInputValue, setGroupInputValue] = useState(form.group || "");
|
||||
|
||||
|
||||
Reference in new issue
Block a user