feat: terminal proxy

This commit is contained in:
2024-12-21 18:01:41 +00:00
parent 8641eeeca8
commit 3e7e0a789b
9 changed files with 377 additions and 77 deletions

51
Cargo.lock generated
View File

@ -194,7 +194,7 @@ dependencies = [
"tokio",
"tokio-rustls 0.26.0",
"tokio-socks",
"tokio-tungstenite",
"tokio-tungstenite 0.24.0",
"url",
"wasm-bindgen",
"web-sys",
@ -2049,17 +2049,20 @@ dependencies = [
"lettre",
"lnvps_db",
"log",
"native-tls",
"nostr",
"nostr-sdk",
"pretty_env_logger",
"rand",
"reqwest",
"rocket",
"rocket_ws",
"serde",
"serde_json",
"ssh-key",
"ssh2",
"tokio",
"tokio-tungstenite 0.21.0",
"urlencoding",
]
@ -3166,6 +3169,16 @@ dependencies = [
"uncased",
]
[[package]]
name = "rocket_ws"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "25f1877668c937b701177c349f21383c556cd3bb4ba8fa1d07fa96ccb3a8782e"
dependencies = [
"rocket",
"tokio-tungstenite 0.21.0",
]
[[package]]
name = "ron"
version = "0.8.1"
@ -4196,6 +4209,20 @@ dependencies = [
"tokio",
]
[[package]]
name = "tokio-tungstenite"
version = "0.21.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c83b561d025642014097b66e6c1bb422783339e0909e4429cde4749d1990bc38"
dependencies = [
"futures-util",
"log",
"native-tls",
"tokio",
"tokio-native-tls",
"tungstenite 0.21.0",
]
[[package]]
name = "tokio-tungstenite"
version = "0.24.0"
@ -4208,7 +4235,7 @@ dependencies = [
"rustls-pki-types",
"tokio",
"tokio-rustls 0.26.0",
"tungstenite",
"tungstenite 0.24.0",
"webpki-roots",
]
@ -4402,6 +4429,26 @@ version = "0.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
[[package]]
name = "tungstenite"
version = "0.21.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9ef1a641ea34f399a848dea702823bbecfb4c486f911735368f1f137cb8257e1"
dependencies = [
"byteorder",
"bytes",
"data-encoding",
"http 1.1.0",
"httparse",
"log",
"native-tls",
"rand",
"sha1",
"thiserror",
"url",
"utf-8",
]
[[package]]
name = "tungstenite"
version = "0.24.0"