Skip to content

support for >REMOTE - #840

Open
selvanair wants to merge 2 commits into
OpenVPN:masterfrom
selvanair:query-remote-v4
Open

selvanair wants to merge 2 commits into
OpenVPN:masterfrom
selvanair:query-remote-v4

Conversation

@selvanair

Copy link
Copy Markdown
Collaborator

This has been sitting in my local repo for a few years now, waiting for some wrinkles to be fixed. Here it comes.

Add support for selecting the server (remote) from
the GUI. Requires --management-query-remote in the
config file. This option is not added by the GUI.

A list of all available remotes are presented to the
user with the proposed remote as selected. The list
could be sorted alphabetically by clicking on any
column header.

If there are no duplicate remote entries, the selected
remote can be passed to the daemon in one round trip
(in about ~1 second).  Otherwise it can take a few
round trips, or as much as O(n) round trips in some
pathological cases, where n is the number of remote entries.

In case of error while retrieving the remote entry list
a partial list is shown to the user. A warning message is
displayed. The user can click cancel to retry or select
one of the remotes shown.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
If the user does not interact with the remote selection
dialog, auto accept the currently proposed enrty. Avoids
reconnections stall when user is away.

The timer is started only after the full list is populated
without error. Cancel on mouse or keyboard input, including
in child controls, and remember interaction during loading.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
@selvanair
selvanair requested a review from lstipakov November 14, 2026 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant