openvpn: fix ipchange hotplug event
authorIvan Pavlov <AuthorReflex@gmail.com>
Wed, 7 Jun 2023 17:58:42 +0000 (20:58 +0300)
committerTianling Shen <cnsztl@immortalwrt.org>
Sat, 10 Jun 2023 07:27:56 +0000 (15:27 +0800)
commit3d802d4294ede872ba73115722c2c901c9f676ce
tree3c7fe12d40bdd3eb8e16cf50808022b393e54813
parent2eabf45e4b5ca5ffaa09dd168b9b7f3923b8d3ed
openvpn: fix ipchange hotplug event

In f8a8b71e26b9bdbf86fbb7d4d1482637af7f3ba4 openvpn introduced new hotplug events.
For server config, ipchange hotplug event produces an error.
So, make ipchange hotplug event for client only

Fixes https://github.com/openwrt/packages/issues/21200

Signed-off-by: Ivan Pavlov <AuthorReflex@gmail.com>
(cherry picked from commit 808f67d6152fcac09dcda4d66e2bb285878fb3d4)
net/openvpn/Makefile
net/openvpn/files/openvpn.init