diff --git a/miniupnpd/portinuse.c b/miniupnpd/portinuse.c index 7ff0e84..7b3cbec 100644 --- a/miniupnpd/portinuse.c +++ b/miniupnpd/portinuse.c @@ -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