aboutsummaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2022-01-01 20:16:14 +0000
committerOmar Polo <op@omarpolo.com>2022-01-01 20:16:14 +0000
commit593e412b4988ca8b72bb7ef9b1cc663cb1184215 (patch)
tree55599fb76ec918b214af8b5fd7e4e1af1d51aaca /parse.y
parent294a57275af3dafa948119e60a8db979be25e1f7 (diff)
allow to disable TLS when proxying requests
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y6
1 files changed, 5 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 82debbf..e17fd06 100644
--- a/parse.y
+++ b/parse.y
@@ -125,7 +125,7 @@ typedef struct {
%token RELAY_TO REQUIRE RETURN ROOT
%token SERVER SPAWN STRIP
%token TCP TOEXT TYPE
-%token USER
+%token USE_TLS USER
%token VERIFYNAME
%token ERROR
@@ -339,6 +339,9 @@ proxy_opt : CERT string {
yyerror("proxy port is %s: %s", errstr,
p->port);
}
+ | USE_TLS bool {
+ host->proxy.notls = !$2;
+ }
| VERIFYNAME bool {
host->proxy.noverifyname = !$2;
}
@@ -482,6 +485,7 @@ static struct keyword {
{"tcp", TCP},
{"to-ext", TOEXT},
{"type", TYPE},
+ {"use-tls", USE_TLS},
{"user", USER},
{"verifyname", VERIFYNAME},
};