mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-18 22:16:18 -05:00
23 lines
671 B
Rust
23 lines
671 B
Rust
use serde::{Deserialize, Serialize};
|
|
|
|
use crate::service::vpn_state::VpnState;
|
|
|
|
/// Represents the VPN environment configuration.
|
|
/// When a client connects, the gpservice sends the current VPN environment
|
|
/// to the client so that it can configure itself accordingly.
|
|
#[derive(Debug, Serialize, Deserialize, Clone)]
|
|
pub struct VpnEnv {
|
|
/// The VPN connection state
|
|
pub vpn_state: VpnState,
|
|
|
|
/// The default VPN script path
|
|
pub vpnc_script: Option<String>,
|
|
|
|
/// The default CSD wrapper script path
|
|
pub csd_wrapper: Option<String>,
|
|
|
|
/// The gpauth executable path
|
|
/// Used by the client to launch gpauth for authentication
|
|
pub auth_executable: String,
|
|
}
|