diff options
author | Omar Polo <op@omarpolo.com> | 2022-01-01 20:16:14 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2022-01-01 20:16:14 +0000 |
commit | 593e412b4988ca8b72bb7ef9b1cc663cb1184215 (patch) | |
tree | 55599fb76ec918b214af8b5fd7e4e1af1d51aaca /parse.y | |
parent | 294a57275af3dafa948119e60a8db979be25e1f7 (diff) |
allow to disable TLS when proxying requests
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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}, }; |