feat: add operational reconnect and shutdown handling

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
This commit is contained in:
c4ch3c4d3
2026-06-04 08:25:36 -06:00
co-authored by factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
parent b67248e14f
commit 10b8b24dce
6 changed files with 823 additions and 258 deletions
+7 -6
View File
@@ -4,6 +4,7 @@ mod errors;
mod framing;
mod generate;
mod redact;
mod signal;
mod socks5;
mod tls;
mod tunnel;
@@ -156,9 +157,9 @@ fn run_listen(
let config = ListenerConfig {
bind_addr,
server_cert_path: Arc::from(Path::new(&cert)),
server_key_path: Arc::from(Path::new(&key)),
ca_cert_path: Arc::from(Path::new(&ca_cert)),
server_cert_path: Arc::new(std::path::PathBuf::from(&cert)),
server_key_path: Arc::new(std::path::PathBuf::from(&key)),
ca_cert_path: Arc::new(std::path::PathBuf::from(&ca_cert)),
auth_token: Arc::new(auth_token),
};
@@ -278,9 +279,9 @@ fn run_connect(
let config = ConnectorConfig {
target_host,
target_port,
client_cert_path: Arc::from(Path::new(&cert)),
client_key_path: Arc::from(Path::new(&key)),
ca_cert_path: Arc::from(Path::new(&ca_cert)),
client_cert_path: Arc::new(std::path::PathBuf::from(&cert)),
client_key_path: Arc::new(std::path::PathBuf::from(&key)),
ca_cert_path: Arc::new(std::path::PathBuf::from(&ca_cert)),
auth_token: Arc::new(auth_token),
};