openvpn3 icon indicating copy to clipboard operation
openvpn3 copied to clipboard

omi: implement OMI `state` command

Open facboy opened this issue 3 years ago • 1 comments

Currently omicliagent returns an error if the state command (without an argument) is sent. This commit fixes it to return the current OpenVPN state as required by the OMI spec.

facboy avatar Sep 02 '22 11:09 facboy

real_time_status() doesn't really return connection state but status of real time notifications (on/off). I think the better approach would be to mimic openvpn2 behavior and return the latest connection state.

Here is my fix - it should end up in master eventually.

lstipakov avatar Sep 02 '22 12:09 lstipakov