Re: [Libevent-users] Getting client IP address from proxy
The only place you'll be able to get it is from the input header as you specified. -Patrick 2009/7/9 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, "X_Real_IP")? > ___ > Libevent-users mailing list > [email protected] > http://monkeymail.org/mailman/listinfo/libevent-users > ___ Libevent-users mailing list [email protected] http://monkeymail.org/mailman/listinfo/libevent-users
[Libevent-users] Getting client IP address from proxy
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, "X_Real_IP")? ___ Libevent-users mailing list [email protected] http://monkeymail.org/mailman/listinfo/libevent-users
