]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Include CE_DISABLED status of remote in "remote-entry-get" response
authorSelva Nair <selva.nair@gmail.com>
Wed, 11 Jan 2023 06:29:10 +0000 (01:29 -0500)
committerGert Doering <gert@greenie.muc.de>
Wed, 11 Jan 2023 07:31:30 +0000 (08:31 +0100)
commiteafbedc583c48fd46405fa0d635c688ce59c3733
tree9f03b75bd89ced1d19b38ca906accc0546403bcd
parent202b34da386c8574692111bad23814602d0e09f5
Include CE_DISABLED status of remote in "remote-entry-get" response

- The response to the management command "remote-entry-get" is
  amended to include the status of the remote entry. The status
  reads "disabled" if (ce->flag & DISABLED) is true, "enabled"
  otherwise.

- Update and correct the description of this option in
  management-notes.txt

  Example responses:
  In response to "remote-entry-get 0"

  0,vpn.example.com,udp,enabled
  END

  Or, in response to "remote-entry-get all"

  0,vpn.example.org,udp,enabled
  1,vpn.example.com,udp,enabled
  2,vpn.example.net,tcp-client,disabled
  END

This helps the management client to show only enabled remotes
to the user.
An alternative would require the  UI/GUI to have knowledge of
what makes the daemon set CE_DISABLED (--proto-force,
--htttp-proxy-override etc.).

Signed-off-by: Selva Nair <selva.nair@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20230111062910.1846688-1-selva.nair@gmail.com>
URL: https://www.mail-archive.com/search?l=mid&q=20230111062910.1846688-1-selva.nair@gmail.com
Signed-off-by: Gert Doering <gert@greenie.muc.de>
doc/management-notes.txt
src/openvpn/init.c