How can i get ip and port under forward proxy

honwel nginx-forum at nginx.us
Fri Jun 7 01:29:36 UTC 2013


Thanks, i add a line " len = NGX_SOCKADDRLEN ", then , it is ok!  thanks
very much.
but i want to know , why?  (struct sockaddr *) &sa and &len as are input
paramter, why len need initialized?

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,239883,239939#msg-239939



More information about the nginx mailing list