Adding Tomato ifdef for netfilter chain to check

To allow for "drop-in" upgrades of Miniupnp within Tomato firmware, submitting this change back upstream.
Original source:  b9d9e4b0ed?at=shibby-arm
This commit is contained in:
edrikk 2017-07-05 14:40:51 -04:00 committed by GitHub
parent 04d1e4e3f5
commit 9ac353cb5e
1 changed files with 5 additions and 1 deletions

View File

@ -56,7 +56,11 @@
#if defined(USE_NETFILTER)
/* Hardcoded for now. Ideally would come from .conf file */
char *chains_to_check[] = { "PREROUTING" , 0 };
# ifdef TOMATO
char *chains_to_check[] = { "WANPREROUTING" , 0 };
# else
char *chains_to_check[] = { "PREROUTING" , 0 };
# endif
#endif
int