feat(ssh): support custom SSH agent socket path

This commit is contained in:
t8y2 committed 2026-06-18 00:15:08 +08:00
1 parent c4c427fb67
commit 00541291e3
13 files changed
+56 -5

No files matched your search

+5
View File
@@ -148,6 +148,11 @@ pub struct SshTunnelConfig {
pub expose_lan: bool,
#[serde(default)]
pub use_ssh_agent: bool,
/// Custom SSH agent socket path (e.g. `~/.ssh/agent.sock`).
/// When set and `use_ssh_agent` is true, this path is used instead of
/// the `SSH_AUTH_SOCK` environment variable.
#[serde(default)]
pub ssh_agent_sock_path: String,
}
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]