aboutsummaryrefslogtreecommitdiff
path: root/proxy.c
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 /proxy.c
parent7bdcc91ec70ddde092ac5d7b4f75d54915e7b221 (diff)
add `verifyname' option for `proxy' rule
Diffstat (limited to 'proxy.c')
-rw-r--r--proxy.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/proxy.c b/proxy.c
index 99fd842..87791de 100644
--- a/proxy.c
+++ b/proxy.c
@@ -292,6 +292,9 @@ proxy_init(struct client *c)
if ((conf = tls_config_new()) == NULL)
return -1;
+ if (p->noverifyname)
+ tls_config_insecure_noverifyname(conf);
+
/* TODO: tls_config_set_protocols here */
tls_config_insecure_noverifycert(conf);