Hi, On Wed, May 13, 2020 at 12:36 PM Gert Doering <g...@greenie.muc.de> wrote: > > Hi, > > On Sun, Jun 09, 2019 at 03:33:55PM -0400, Selva Nair wrote: > > Ref: https://patchwork.openvpn.net/project/openvpn2/list/?series=201 > > > > These patches were meant to help implement choosing the remote through > > the GUI. I may not find time for that but the patches by themselves > > are still relevant. > > > > If there is some interest I'll rebase to master. > > I'm working my way through the patch queue these days, and now I'm > at this one :-) > > Can you elaborate a bit how this would work, and how much work on the > GUI side would be needed? (And, yes, a rebased patch :) ).
>From what I can recall... Two points to note: (i) With multiple remotes, openvpn exits if no successful connection could be made after two cycles through all remotes (undocumented?) . (ii) When --management-query-remote is used, the core presents one remote at a time and the user has to make a choice to skip, accept or replace without knowing which remotes are available. Now, for a user-friendly implementation of selecting the remote from a GUI dialog, the plan is to silently cycle through all remotes, make a list and then allow the user to make a selection from the list. This will be aided by having a safe way to cycle through all remotes multiple times without the core exiting --- arguably, one cycle is enough to make a list and the list building is complete when the second cycle starts. But it would be much easier to do this without having to worry about the core exiting unexpectedly. The GUI knows how to restart or terminate the core exit if need be. The behaviour is unchanged if management-query-remote is not in use. The patch also changes the way failed connections are counted: skipped remotes should not be counted as failed as that count is used in the back-off logic. Selva _______________________________________________ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel