X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=client-tags.c;h=54c4704895be9efa6eddf1460a45eb396b73581f;hp=e04345c8168f491f6cc413a821f6a4709964e461;hb=d089286e234a79527836bf00b56d174ddb60de03;hpb=d6f6d40eb51a7a7f491c5c027f83bbd7f44c009f diff --git a/client-tags.c b/client-tags.c index e04345c8..54c47048 100644 --- a/client-tags.c +++ b/client-tags.c @@ -28,6 +28,8 @@ #include "config.h" +#ifdef FEATURE_CLIENT_TAGS + #include #include #include @@ -491,7 +493,8 @@ jb_err enable_client_specific_tag(struct client_state *csp, { add_tag_for_client(csp->ip_addr_str, tag_name, time_to_live); log_error(LOG_LEVEL_INFO, - "Tag '%s' enabled for client '%s'", tag->name, csp->ip_addr_str); + "Tag '%s' enabled for client '%s'. TTL: %d.", + tag->name, csp->ip_addr_str, time_to_live); } privoxy_mutex_unlock(&client_tags_mutex); @@ -585,3 +588,6 @@ int client_tag_match(const struct pattern_spec *pattern, return 0; } +#else +#error Compiling client-tags.c without FEATURE_CLIENT_TAGS +#endif /* def FEATURE_CLIENT_TAGS */