From 367cd9e5c2b8e3f9b8dbed40bfe8a0ed79285c36 Mon Sep 17 00:00:00 2001 From: Greg Hazel Date: Sun, 11 Feb 2018 16:28:58 -0800 Subject: Fix evhttp_connection_get_addr() fox incomming http connections Install conn_address of the bufferevent on incomping http connections (even though this is kind of subsytem violation, so let's fix it in a simplest way and thinkg about long-term solution). Fixes: #510 Closes: #595 (pick) --- http.c | 1 + 1 file changed, 1 insertion(+) (limited to 'http.c') diff --git a/http.c b/http.c index a49809a7..b04af9a3 100644 --- a/http.c +++ b/http.c @@ -4221,6 +4221,7 @@ evhttp_get_request_connection( bufferevent_enable(evcon->bufev, EV_READ); bufferevent_disable(evcon->bufev, EV_WRITE); bufferevent_setfd(evcon->bufev, fd); + bufferevent_socket_set_conn_address_(evcon->bufev, sa, salen); return (evcon); } -- cgit v1.2.1