Let error_response() handle FORWARD_WEBSERVER
authorFabian Keil <fk@fabiankeil.de>
Tue, 22 Oct 2019 20:08:09 +0000 (22:08 +0200)
committerFabian Keil <fk@fabiankeil.de>
Wed, 30 Oct 2019 10:23:11 +0000 (11:23 +0100)
cgi.c

diff --git a/cgi.c b/cgi.c
index c67aed4..2e9e265 100644 (file)
--- 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);
       }