Skip to main content

openvpn_mgmt_codec/
kill_target.rs

1/// How to identify a client to kill (server mode).
2#[derive(Debug, Clone, PartialEq, Eq)]
3pub enum KillTarget {
4    /// Kill by Common Name from the client's TLS certificate.
5    CommonName(String),
6
7    /// Kill by exact `IP:port` of the client's real address.
8    Address {
9        /// Client IP address.
10        ip: String,
11        /// Client source port.
12        port: u16,
13    },
14}