From: Tim Duesterhus Date: Mon, 18 Oct 2021 10:12:02 +0000 (+0200) Subject: MINOR: halog: Add -qry parameter allowing to preserve the query string in -uX X-Git-Tag: v2.5-dev12~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24b8d693b202b01b649f64ed878d8f9dd1b242e4;p=thirdparty%2Fhaproxy.git MINOR: halog: Add -qry parameter allowing to preserve the query string in -uX Our use-case for this is a dynamic application that performs routing based on the query string. Without this option all URLs will just point to the central entrypoint of this location, making the output completely useless. --- diff --git a/admin/halog/halog.c b/admin/halog/halog.c index 5d256209b5..2d6c17f45d 100644 --- a/admin/halog/halog.c +++ b/admin/halog/halog.c @@ -117,7 +117,8 @@ struct url_stat { #define FILT_COUNT_COOK_CODES 0x40000000 #define FILT_COUNT_IP_COUNT 0x80000000 -#define FILT2_TIMESTAMP 0x01 +#define FILT2_TIMESTAMP 0x01 +#define FILT2_PRESERVE_QUERY 0x02 unsigned int filter = 0; unsigned int filter2 = 0; @@ -147,7 +148,7 @@ void usage(FILE *output, const char *msg) "Usage: halog [-h|--help] for long help\n" " halog [-q] [-c] [-m ]\n" " {-cc|-gt|-pct|-st|-tc|-srv|-u|-uc|-ue|-ua|-ut|-uao|-uto|-uba|-ubt|-ic}\n" - " [-s ] [-e|-E] [-H] [-rt|-RT