feat(connection): add dedicated ssh tunnel test button

This commit is contained in:
zipg authored and GitHub committed 2026-09-01 15:07:51 +08:00
1 parent f19439ad7a
commit 6588f27fbc
18 files changed
+228 -21

No files matched your search

+5
View File
@@ -1112,6 +1112,11 @@ pub async fn test_connection_with_info(
test_connection_with_info_inner(state.inner(), config).await
}
#[tauri::command]
pub async fn test_ssh_tunnel(state: State<'_, Arc<AppState>>, config: ConnectionConfig) -> Result<String, String> {
state.test_connection_ssh_tunnel(&config.canonicalized()).await
}
async fn test_connection_with_info_inner(
state: &Arc<AppState>,
config: ConnectionConfig,
+1
View File
@@ -1794,6 +1794,7 @@ pub fn run() {
commands::cloud_sync::snippet_sync_download,
commands::connection::test_connection,
commands::connection::test_connection_with_info,
commands::connection::test_ssh_tunnel,
commands::connection::connect_db,
commands::connection::connection_final_proxy_port,
commands::connection::disconnect_db,