MINOR: connection: add proxy-v2-options authority
This patch add option PP2_TYPE_AUTHORITY to proxy protocol v2 when a TLS
connection was negotiated. In this case, authority corresponds to the sni.
diff --git a/src/server.c b/src/server.c
index 77fc0c6..f4cf45c 100644
--- a/src/server.c
+++ b/src/server.c
@@ -526,6 +526,8 @@
} else if (!strcmp(p, "ssl-cipher")) {
newsrv->pp_opts |= SRV_PP_V2_SSL;
newsrv->pp_opts |= SRV_PP_V2_SSL_CIPHER;
+ } else if (!strcmp(p, "authority")) {
+ newsrv->pp_opts |= SRV_PP_V2_AUTHORITY;
} else
goto fail;
}