summaryrefslogtreecommitdiff
path: root/src/mod_maxminddb.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2023-02-26 05:17:41 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2023-02-28 00:12:48 -0500
commit3a8fc4bc9c1d3c36fba75abf499103f028ebea13 (patch)
tree90252342463d34bbd396a88f23c94004211abd75 /src/mod_maxminddb.c
parent02dce5e254ba44b70e1be819f3305255535333be (diff)
downloadlighttpd-git-3a8fc4bc9c1d3c36fba75abf499103f028ebea13.tar.gz
[multiple] store ptrs to remote addr in request_st (#3192)
adds two pointers to (request_st *) (cost: 16 bytes in 64-bit builds) prepares for upcoming changes to mod_extforward to manage remote addr per request for HTTP/2 requests, rather than remote addr per connection. Modern load balancers often provide options to reuse connections for *different* clients, and therefore mod_extforward might change the remote addr per request. x-ref: "RFE: mod_extforward and multiplexed requests via HTTP/2" https://redmine.lighttpd.net/issues/3192 "Evaluation of remote_addr for mod_maxminddb for multiplexed connections" https://redmine.lighttpd.net/issues/3191
Diffstat (limited to 'src/mod_maxminddb.c')
-rw-r--r--src/mod_maxminddb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_maxminddb.c b/src/mod_maxminddb.c
index 04034f70..fb5dc850 100644
--- a/src/mod_maxminddb.c
+++ b/src/mod_maxminddb.c
@@ -439,7 +439,7 @@ REQUEST_FUNC(mod_maxminddb_request_env_handler)
if (!pconf.activate || NULL == pconf.env || NULL == pconf.mmdb)
return HANDLER_GO_ON;
- const sock_addr * const dst_addr = &r->con->dst_addr;
+ const sock_addr * const dst_addr = r->dst_addr;
#if 0
/* future: if mod_extforward is (future) extended for HTTP/2 and