X-Git-Url: https://git.archive.openwrt.org/?p=project%2Ffirewall3.git;a=blobdiff_plain;f=redirects.c;fp=redirects.c;h=7f9948cd3bb77a3a83b3553615d5e3ef4d677404;hp=660cdd2f3e94875b80499a8094cdb90558201ce6;hb=08b2c61b4d66bb78d98135d8ddb87ce34be55c81;hpb=35b3e74a184b709b8ddfaaa094919a656a6ec059 diff --git a/redirects.c b/redirects.c index 660cdd2..7f9948c 100644 --- a/redirects.c +++ b/redirects.c @@ -576,7 +576,7 @@ print_redirect(struct fw3_ipt_handle *h, struct fw3_state *state, case FW3_TABLE_RAW: if (redir->target == FW3_FLAG_DNAT && redir->helper.ptr) { - if (redir->helper.ptr->proto.protocol != proto->protocol) + if (!fw3_cthelper_check_proto(redir->helper.ptr, proto)) { info(" ! Skipping protocol %s since helper '%s' does not support it", fw3_protoname(proto), redir->helper.ptr->name);