From f71fb7cbfbdc1fa6ddea1c177a2c4e7ee553b27a Mon Sep 17 00:00:00 2001
From: Fabian Keil <fk@fabiankeil.de>
Date: Tue, 22 Oct 2019 22:08:09 +0200
Subject: [PATCH] Let error_response() handle FORWARD_WEBSERVER

---
 cgi.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cgi.c b/cgi.c
index c67aed4b..2e9e2656 100644
--- a/cgi.c
+++ b/cgi.c
@@ -978,6 +978,9 @@ struct http_response *error_response(struct client_state *csp,
          case SOCKS_5T:
             socks_type = "socks5t-";
             break;
+         case FORWARD_WEBSERVER:
+            socks_type = "webserver-";
+            break;
          default:
             log_error(LOG_LEVEL_FATAL, "Unknown socks type: %d.", fwd->type);
       }
-- 
2.49.0