From 6bbf79245b937c2314b04b6d91548d03046fc7e6 Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Wed, 6 Jan 2021 18:45:38 +0100 Subject: [PATCH] Report status on not local mode --- src/client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client.c b/src/client.c index aef55ae..9badde7 100644 --- a/src/client.c +++ b/src/client.c @@ -126,6 +126,7 @@ int client_request_handler(sock *client, unsigned long client_num, unsigned int conf = get_host_config(host); if (conf == NULL) { + print("Host unknown, redirecting to default"); res.status = http_get_status(307); sprintf(buf0, "https://%s%s", DEFAULT_HOST, req.uri); http_add_header_field(&res.hdr, "Location", buf0); @@ -133,6 +134,7 @@ int client_request_handler(sock *client, unsigned long client_num, unsigned int } if (conf->type != CONFIG_TYPE_LOCAL) { + print("Reverse proxy for %s:%i", conf->rev_proxy.hostname, conf->rev_proxy.port); // TODO Reverse Proxy res.status = http_get_status(501); goto respond;