mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-10-09 15:58:34 +00:00
fix: honor SSH agent opt-out
This commit is contained in:
@@ -33,9 +33,14 @@ export const useApplicationBackend = () => {
|
||||
return info ?? null;
|
||||
}, []);
|
||||
|
||||
const checkSshAgent = useCallback(async (identityAgent?: string): Promise<SshAgentStatus | null> => {
|
||||
const checkSshAgent = useCallback(async (options?: {
|
||||
identityAgent?: string;
|
||||
hostname?: string;
|
||||
port?: number;
|
||||
username?: string;
|
||||
}): Promise<SshAgentStatus | null> => {
|
||||
const bridge = netcattyBridge.get();
|
||||
const status = await bridge?.checkSshAgent?.(identityAgent);
|
||||
const status = await bridge?.checkSshAgent?.(options);
|
||||
return status ?? null;
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user