diff --git a/darkhttpd.c b/darkhttpd.c index 893782e..08c6963 100644 --- a/darkhttpd.c +++ b/darkhttpd.c @@ -1759,7 +1759,7 @@ static void process_get(struct connection *conn) { } /* test the host against web forward options */ - { + if (forward_map) { char *host = parse_field(conn, "Host: "); if (host) { size_t i;