infinet / xt_wgobfs

Iptables WireGuard obfuscation extension
GNU General Public License v2.0
223 stars 24 forks source link

Fix builds on iptables version 1.8.9 or newer #15

Closed joaodefelipe closed 1 year ago

joaodefelipe commented 1 year ago

Ever since iptables commit ef108943f69a6e20533d58823740d3f0534ea8ec, the _init macro has become guarded by XTABLES_INTERNAL, thus breaking this extension.

Explicitly specify the constructor attribute on the initialization function, which works on all versions.

infinet commented 1 year ago

Thanks so much for the PR!