openvpn 2.4.6-r1 bug
Server mode of openvpn couldn’t start with init.d script:
Options error: —up-delay cannot be used with —mode server
If i comment `—up-delay` string in init.d start file, server starts
fine but in inactive mode.
It looks like $client_mode var not setted correctly.
Previous version of package worked fine.
(from redmine: issue id 8875, created on 2018-05-11, closed on 2019-02-25)
- Changesets:
- Revision 6a333b48 by Jakub Jirutka on 2018-05-13T18:52:32Z:
main/openvpn: fix backward compatibility of init script
This fixes problem introduced in commit 4a66978dd949d571fdd984d800b3121c3a1a297f.
When user upgrades openvpn package, but (s)he has never modified
/etc/conf.d/openvpn file, apk automatically updates it and so sets openvpn
to the client mode. I forgot to this case and wrongly assumed that existing
config is always preserved.
BTW, the previoud change was based on
https://github.com/OpenRC/openrc/blob/master/support/init.d.examples/openvpn.in.
Ref #8875 (https://bugs.alpinelinux.org/issues/8875)