feat(connection): add dedicated ssh tunnel test button
This commit is contained in:
18 files changed
+228
-21
No files matched your search
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user