Re: [Openvpn-devel] [PATCH v3] Don't "undo" ifconfig on exit if it wasn't done

2022-05-31 Thread Gert Doering
Hi, On Mon, May 30, 2022 at 05:49:15PM +0200, Max Fillinger wrote: > When running with --ifconfig-noexec, OpenVPN does not execute ifconfig, > but on exit, it still tries to "undo" the configuration it would have > done. This patch fixes it by extracting an undo_ifconfig() function from > close_tu

[Openvpn-devel] [PATCH v3] Don't "undo" ifconfig on exit if it wasn't done

2022-05-30 Thread Max Fillinger
When running with --ifconfig-noexec, OpenVPN does not execute ifconfig, but on exit, it still tries to "undo" the configuration it would have done. This patch fixes it by extracting an undo_ifconfig() function from close_tun(). The undo function is called before close_tun(), but only if --ifconfig-