aboutsummaryrefslogtreecommitdiff
path: root/gmid.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2022-01-30 10:14:44 +0000
committerOmar Polo <op@omarpolo.com>2022-01-30 10:14:44 +0000
commit1cdea97b6c74ec86e202431a208b5c99343f7273 (patch)
tree630fa77c88a4071706e094912d17a56144355672 /gmid.c
parent1b626eae837ad61f2cd56fbd310ab9397b522c3a (diff)
allow using a custom hostname for SNI during proxying
add a `sni' option for the `proxy' block: the given name is used instead of the one extracted by the `relay-to' rule.
Diffstat (limited to 'gmid.c')
-rw-r--r--gmid.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gmid.c b/gmid.c
index 2abdce0..b2aa170 100644
--- a/gmid.c
+++ b/gmid.c
@@ -338,6 +338,7 @@ free_config(void)
free(p->match_proto);
free(p->match_host);
free(p->host);
+ free(p->sni);
tls_unload_file(p->cert, p->certlen);
tls_unload_file(p->key, p->keylen);
free(p);