Skip to content

Commit

Permalink
iptables: Remove static from _init().
Browse files Browse the repository at this point in the history
F1xes #337. Solution provided by @yaoli-zheng-axcient.
  • Loading branch information
ydahhrk committed Jul 20, 2020
1 parent 661e496 commit 07279bf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/usr/iptables/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]));
}

0 comments on commit 07279bf

Please sign in to comment.