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 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 > Libevent-users@monkey.org > http://monkeymail.org/mailman/listinfo/libevent-users > _______________________________________________ Libevent-users mailing list Libevent-users@monkey.org http://monkeymail.org/mailman/listinfo/libevent-users