diff options
author | Christopher Davis <chrisd@mangrin.org> | 2010-11-05 11:17:07 -0700 |
---|---|---|
committer | Christopher Davis <chrisd@torproject.org> | 2010-11-26 03:58:28 -0800 |
commit | aab8c38b768597274104bc5ecdf267de4ff3c7c9 (patch) | |
tree | 6cca4b3f184b7ec383c138010150dbaba4b7275d /http-internal.h | |
parent | 2e5a175bf387bd5c80b88f276b4ba7dcf9eaaf08 (diff) | |
download | libevent-aab8c38b768597274104bc5ecdf267de4ff3c7c9.tar.gz |
Add evhttp server alias interface, correct flagging of proxy requests.
evhttp needs to be mindful of all hostnames and addresses that clients
use to contact the main server and vhosts to know the difference between
proxy requests and non-proxy requests.
Diffstat (limited to 'http-internal.h')
-rw-r--r-- | http-internal.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/http-internal.h b/http-internal.h index e32511e3..7a2446ff 100644 --- a/http-internal.h +++ b/http-internal.h @@ -126,6 +126,11 @@ struct evhttp_bound_socket { struct evconnlistener *listener; }; +struct evhttp_server_alias { + TAILQ_ENTRY(evhttp_server_alias) next; + char *alias; +}; + struct evhttp { /* Next vhost, if this is a vhost. */ TAILQ_ENTRY(evhttp) next_vhost; @@ -140,6 +145,8 @@ struct evhttp { TAILQ_HEAD(vhostsq, evhttp) virtualhosts; + TAILQ_HEAD(aliasq, evhttp_server_alias) aliases; + /* NULL if this server is not a vhost */ char *vhost_pattern; |