So, this is still fixing an edge case when reconnecting and having
stale data around - a better fix, I think, would be to properly extend
pre-connect save/restore to the RG flags (and remove this check again)
- but for now, it does the job.  I have added a reference to the
new GH issue (863) for the subsequent cleanup.

Not tested beyond "BB confirms it's not breaking platforms" and a bit
of stare-at-code.

Your patch has been applied to the master branch.

commit 1b423f508e7ebf70e711c90bc9cf2e57c1f197f0
Author: Marco Baffo
Date:   Sat Oct 11 13:14:11 2025 +0200

     redirect-gateway: only redirect traffic through TUN if address families 
match

     Signed-off-by: mrbff <[email protected]>
     Acked-by: Gert Doering <[email protected]>
     Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1210
     Message-Id: <[email protected]>
     URL: https://sourceforge.net/p/openvpn/mailman/message/59245295/
     Signed-off-by: Gert Doering <[email protected]>


--
kind regards,

Gert Doering



_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to