There has been quite a bit of discussion about this one-liner on #openvpn-devel - this is not a particularily pretty piece of code, nor easy to understand. It's intended as a "do not break existing setups" bandaid, while we spend more thoughts on making this work better, and also clarify for ourselves and the documentation what "default gateway" and "route ... net_gateway" really means :-) - and possibly drop "non def1" redirection, which will simplify more of this.
Thanks for looking into this :-) Your patch has been applied to the master branch. commit 75ba07d496da269b13fc368311f8a063b65d58e7 Author: Marco Baffo Date: Fri Feb 14 16:34:34 2025 +0100 get_default_gateway(): Prevent passing IPV4_INVALID_ADDR as a destination Signed-off-by: Marco Baffo <ma...@mandelbit.com> Acked-by: Gert Doering <g...@greenie.muc.de> Message-Id: <20250214153434.18539-1-g...@greenie.muc.de> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg30895.html Signed-off-by: Gert Doering <g...@greenie.muc.de> -- kind regards, Gert Doering _______________________________________________ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel