[Libevent-users] Getting client IP address from proxy

2009-07-09 Thread Rauan Maemirov
Hi, all. I'm trying to proxy from nginx to my daemon (written upon libevent), but in req-remote_host i always get 127.0.0.1. What header i should change, so that libevent would get correct ip address? Or there's no solution, but only getting it directly from evhttp_find_header(req-input_headers,

Re: [Libevent-users] Getting client IP address from proxy

2009-07-09 Thread Patrick C
The only place you'll be able to get it is from the input header as you specified. -Patrick 2009/7/9 Rauan Maemirov ra...@maemirov.com: Hi, all. I'm trying to proxy from nginx to my daemon (written upon libevent), but in req-remote_host i always get 127.0.0.1. What header i should change, so