get the correctly peer when client access via proxy

I think the last x-forwarded-for field is the last proxy ip, and may be the first x-f-f field is real client ip.