openvpn-management is a wrapper to the openvpn management interface.
The crate is called
openvpn-management. You can use it by adding it as a dependency to your
[dependencies] openvpn-management = "*"
- Getting all connected client information
use openvpn_management::EventManager; // build the client: let mut event_manager = openvpn_management::CommandManagerBuilder::new() .management_url("localhost:5555") .build() .unwrap(); // get the current status: let status = event_manager .get_status() .unwrap(); // get client information: let clients = status.clients();
Contains useful information on a client which is connected to the openvpn server
Contains the marshalled response from the