diff --git a/profile_translator_blocklist/templates/callback.c.j2 b/profile_translator_blocklist/templates/callback.c.j2 index 46982b91a4863f551e2558065e3f063e72563666..477630a09b79cde9264677b2bb93064df8740e05 100644 --- a/profile_translator_blocklist/templates/callback.c.j2 +++ b/profile_translator_blocklist/templates/callback.c.j2 @@ -152,9 +152,6 @@ uint32_t callback_{{nfqueue_name}}(int pkt_id, int pkt_len, uint8_t *payload, vo /* Policy {{policy_name}} */ {% if policy.nfq_matches %} if ( - {% if policy.custom_parser == 'http' %} - !is_http_message || ( - {% endif %} {% set rule = policy.nfq_matches[0] %} {% if rule['template'] | is_list %} ( @@ -187,9 +184,6 @@ uint32_t callback_{{nfqueue_name}}(int pkt_id, int pkt_len, uint8_t *payload, vo {{ rule['template'].format(rule['match']) }} {% endif %} {% endfor %} - {% if policy.custom_parser == 'http' %} - ) - {% endif %} ) { {% set is_dns_response = namespace(value=False) %}