mirror of
https://github.com/tauri-apps/verso.git
synced 2026-01-31 00:55:21 +01:00
16 lines
403 B
Rust
16 lines
403 B
Rust
#[derive(Debug, Clone)]
|
|
pub struct ProxyEndpoint {
|
|
/// Proxy server host (e.g. 192.168.0.100, localhost, example.com, etc.)
|
|
pub host: String,
|
|
/// Proxy server port (e.g. 1080, 3128, etc.)
|
|
pub port: String,
|
|
}
|
|
|
|
#[derive(Debug, Clone)]
|
|
pub enum ProxyConfig {
|
|
/// Connect to proxy server via HTTP CONNECT
|
|
Http(ProxyEndpoint),
|
|
/// Connect to proxy server via SOCKSv5
|
|
Socks5(ProxyEndpoint),
|
|
}
|