简体   繁体   中英

app engine rails request.remote_ip values seems incorrect

I am trying to validate cron.yaml requests based on request.remote_ip.

Doc says that it would return 10.0.0.1 but the value returned is '2002:a51:bf0a::'

Issue with gcloud or do i need to check some other request field?

The other addresses are load balancer ones. Hence need to check 'X-Forwarded-For'header values.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM