From 07279bfdaa4b24c7ce60dad231150497b50b1c7d Mon Sep 17 00:00:00 2001 From: Alberto Leiva Popper Date: Mon, 20 Jul 2020 18:04:24 -0500 Subject: [PATCH] iptables: Remove `static` from `_init()`. F1xes #337. Solution provided by @yaoli-zheng-axcient. --- src/usr/iptables/common.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/usr/iptables/common.c b/src/usr/iptables/common.c index 01261b89b..33b7eb018 100644 --- a/src/usr/iptables/common.c +++ b/src/usr/iptables/common.c @@ -123,7 +123,11 @@ static struct xtables_target targets[] = { } }; -static void _init(void) +/* + * Please don't add the static modifier to this function. + * https://github.com/NICMx/Jool/issues/337 + */ +void _init(void) { xtables_register_targets(targets, sizeof(targets) / sizeof(targets[0])); }