#include "config.h"
+#ifdef FEATURE_CLIENT_TAGS
+
#include <stdio.h>
#include <sys/types.h>
#include <stdlib.h>
{
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);
return 0;
}
+#else
+#error Compiling client-tags.c without FEATURE_CLIENT_TAGS
+#endif /* def FEATURE_CLIENT_TAGS */