summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/nxt_h1proto.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nxt_h1proto.c b/src/nxt_h1proto.c
index 7c695549..dc23d7c4 100644
--- a/src/nxt_h1proto.c
+++ b/src/nxt_h1proto.c
@@ -503,7 +503,10 @@ nxt_h1p_conn_request_init(nxt_task_t *task, void *obj, void *data)
joint->count++;
r->conf = joint;
- c->local = joint->socket_conf->sockaddr;
+
+ if (c->local == NULL) {
+ c->local = joint->socket_conf->sockaddr;
+ }
nxt_h1p_conn_request_header_parse(task, c, h1p);
return;