Skip to main content

openvpn_mgmt_codec/
remote_action.rs

1/// Action for the `remote` command (sent in response to a `>REMOTE:`
2/// notification, requires `--management-query-remote`).
3#[derive(Debug, Clone, PartialEq, Eq)]
4pub enum RemoteAction {
5    /// Accept the connection entry as-is.
6    Accept,
7
8    /// Skip this entry and advance to the next `--remote`.
9    Skip,
10
11    /// Override the host and port.
12    Modify {
13        /// Replacement hostname or IP.
14        host: String,
15        /// Replacement port.
16        port: u16,
17    },
18}