summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/conf.c2
-rw-r--r--src/main.h2
-rw-r--r--src/reqs.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/conf.c b/src/conf.c
index f6d44b8..99d8c84 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -457,7 +457,7 @@ static HANDLE_FUNC (handle_stathost)
static HANDLE_FUNC (handle_xtinyproxy)
{
#ifdef XTINYPROXY_ENABLE
- return set_string_arg (&conf->my_domain, line, &match[2]);
+ return set_bool_arg (&conf->add_xtinyproxy, line, &match[2]);
#else
fprintf (stderr,
"XTinyproxy NOT Enabled! Recompile with --enable-xtinyproxy\n");
diff --git a/src/main.h b/src/main.h
index 0c65fd6..50e4cab 100644
--- a/src/main.h
+++ b/src/main.h
@@ -62,7 +62,7 @@ struct config_s {
unsigned int filter_casesensitive; /* boolean */
#endif /* FILTER_ENABLE */
#ifdef XTINYPROXY_ENABLE
- char *my_domain;
+ unsigned int add_xtinyproxy; /* boolean */
#endif
#ifdef REVERSE_SUPPORT
struct reversepath *reversepath_list;
diff --git a/src/reqs.c b/src/reqs.c
index 704f085..b8db7c3 100644
--- a/src/reqs.c
+++ b/src/reqs.c
@@ -1126,7 +1126,7 @@ process_client_headers (struct conn_s *connptr, hashmap_t hashofheaders)
}
}
#if defined(XTINYPROXY_ENABLE)
- if (config.my_domain)
+ if (config.add_xtinyproxy)
add_xtinyproxy_header (connptr);
#endif