aboutsummaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2022-01-01 18:50:10 +0000
committerOmar Polo <op@omarpolo.com>2022-01-01 18:50:10 +0000
commit5128c0b0e3b51737783c4c68c9e34a76ec8c8b0e (patch)
tree00ad1dc18d6ad0e51242f698fdf75999fe25f6c1 /parse.y
parent7bdcc91ec70ddde092ac5d7b4f75d54915e7b221 (diff)
add `verifyname' option for `proxy' rule
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y5
1 files changed, 5 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index db1ebb6..d215006 100644
--- a/parse.y
+++ b/parse.y
@@ -125,6 +125,7 @@ typedef struct {
%token RELAY_TO REQUIRE RETURN ROOT
%token SERVER SPAWN STRIP
%token TCP TOEXT TYPE USER
+%token VERIFYNAME
%token ERROR
@@ -327,6 +328,9 @@ proxy_opt : CERT string {
yyerror("proxy port is %s: %s", errstr,
p->port);
}
+ | VERIFYNAME bool {
+ host->proxy.noverifyname = !$2;
+ }
;
locations : /* empty */
@@ -468,6 +472,7 @@ static struct keyword {
{"to-ext", TOEXT},
{"type", TYPE},
{"user", USER},
+ {"verifyname", VERIFYNAME},
};
void