forked from vhaudiquet/rhema-together
Revert "feat: add reverse ssh sandbox targets"
This reverts commit d85f68a176.
This commit is contained in:
1 parent
d85f68a176
commit
4d9530cc34
20 files changed
+38
-893
No files matched your search
+2
-5
@@ -51,7 +51,6 @@ pub struct TargetRow {
|
||||
pub user_name: String,
|
||||
pub private_key_ciphertext: String,
|
||||
pub host_fingerprint: Option<String>,
|
||||
pub kind: String,
|
||||
}
|
||||
|
||||
/// Reads everything a turn needs.
|
||||
@@ -106,7 +105,7 @@ pub fn load_turn_config(state: &Shared, room_id: &str) -> AppResult<TurnConfig>
|
||||
},
|
||||
)?;
|
||||
let target = conn.query_row(
|
||||
"SELECT id, host, port, user_name, private_key_ciphertext, host_fingerprint, kind
|
||||
"SELECT id, host, port, user_name, private_key_ciphertext, host_fingerprint
|
||||
FROM sandbox_targets WHERE id = ?1",
|
||||
rusqlite::params![target_id],
|
||||
|row| {
|
||||
@@ -117,7 +116,6 @@ pub fn load_turn_config(state: &Shared, room_id: &str) -> AppResult<TurnConfig>
|
||||
user_name: row.get(3)?,
|
||||
private_key_ciphertext: row.get(4)?,
|
||||
host_fingerprint: row.get(5)?,
|
||||
kind: row.get(6)?,
|
||||
})
|
||||
},
|
||||
)?;
|
||||
@@ -194,7 +192,7 @@ pub fn load_room_target(state: &Shared, room: &str) -> AppResult<(String, Target
|
||||
let target_id =
|
||||
target_id.ok_or_else(|| AppError::bad_request("room has no sandbox configured"))?;
|
||||
let target = conn.query_row(
|
||||
"SELECT id, host, port, user_name, private_key_ciphertext, host_fingerprint, kind
|
||||
"SELECT id, host, port, user_name, private_key_ciphertext, host_fingerprint
|
||||
FROM sandbox_targets WHERE id = ?1",
|
||||
rusqlite::params![target_id],
|
||||
|row| {
|
||||
@@ -205,7 +203,6 @@ pub fn load_room_target(state: &Shared, room: &str) -> AppResult<(String, Target
|
||||
user_name: row.get(3)?,
|
||||
private_key_ciphertext: row.get(4)?,
|
||||
host_fingerprint: row.get(5)?,
|
||||
kind: row.get(6)?,
|
||||
})
|
||||
},
|
||||
)?;
|
||||
|
||||
Reference in new issue
Block a user