shadowsocks-libev: ss-rules: nft rule cleanup on reload
authorYousong Zhou <yszhou4tech@gmail.com>
Mon, 8 Aug 2022 12:12:19 +0000 (20:12 +0800)
committerYousong Zhou <yszhou4tech@gmail.com>
Thu, 11 Aug 2022 02:45:12 +0000 (10:45 +0800)
commit6df708763e4fc3273a802f085ebd932d989b49cc
tree7d798097e9030eeca08247497d36b2765c112180
parent53952a136a30da866142c3183a5a07930535d9a3
shadowsocks-libev: ss-rules: nft rule cleanup on reload

Remove nft rules file generated by ss-rules if ss-rules was or should be
turned off for by configuration.  Use "fw4 restart" instead of "fw4
reload" to force the runtime rule reloading

Ref: https://github.com/openwrt/packages/pull/17937#issuecomment-1207357037
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
(cherry picked from commit 04ee0326997c7d19b89621f8273331501a4137b6)
net/shadowsocks-libev/Makefile
net/shadowsocks-libev/files/shadowsocks-libev.init