X-Git-Url: http://git.archive.openwrt.org/?p=project%2Ffirewall3.git;a=blobdiff_plain;f=rules.c;fp=rules.c;h=b6c3d751420c764c004c869a6b4cb21bceed2f06;hp=eea872496e5e42c25d9116d8aa755637161b710f;hb=d2a8a3f6a29746a3a07d2e3415737bcc2241afce;hpb=ea46bc485f05548bb2bd26bc446167e211962c92 diff --git a/rules.c b/rules.c index eea8724..b6c3d75 100644 --- a/rules.c +++ b/rules.c @@ -314,7 +314,9 @@ print_rule(struct fw3_ipt_handle *handle, struct fw3_state *state, if (!fw3_is_family(sip, handle->family) || !fw3_is_family(dip, handle->family)) { - info(" ! Skipping due to different family of ip address"); + if ((sip && !sip->resolved) || (dip && !dip->resolved)) + info(" ! Skipping due to different family of ip address"); + return; }