This commit is contained in:
Arnaud 2026-05-19 11:42:19 +04:00
parent 5023184c83
commit c27d1ddeac
No known key found for this signature in database
GPG Key ID: A6C7C781817146FA

View File

@ -19,7 +19,7 @@ RUN git clone --depth=1 --branch miniupnpd_2_3_9 \
# Build another miniupnpd for pmp: we need to disable explictly PCP for that
# check miniupnpd configure for more info.
# https://github.com/miniupnp/miniupnp/blob/50cb0582d4a659e319050069aa84efbc1f353b14/miniupnpd/configure#L878-L880
&& sed -i 's/^#idefine ENABLE_PCP$/\/*#define ENABLE_PCP*\//' config.h \
&& sed -i 's/^#define ENABLE_PCP$/\/*#define ENABLE_PCP*\//' config.h \
&& make NETFILTEROBJS=stub_rdr.o miniupnpd \
&& install -m 755 miniupnpd /usr/local/sbin/miniupnpd-natpmponly \
&& rm -rf /tmp/miniupnp /tmp/stub_rdr.c