commit | 75e3d37944075ddd7cff5913af8206053aad8148 | [log] [tgz] |
---|---|---|
author | Tuo Shan <sturbo89@gmail.com> | Thu Apr 14 16:05:11 2016 -0400 |
committer | Alan Donovan <adonovan@google.com> | Thu Apr 14 20:29:17 2016 +0000 |
tree | 0e2e5fc0e4eedf4094d2687a912cf4a3c9788038 | |
parent | 562ac074ef9d89137364cc45269354b09500ab6d [diff] |
gddo-server: use X-Appengine-User-Ip to identify ip of requests. When running on GAE, the X-Real-Ip in header is shielded as well. X-Appengine-User-Ip contains the real ip address in this situation. This fixes golang/gddo#393. Change-Id: I64fc4aa0a16a613a4ce4727aa1425d081ce1f0c9 Reviewed-on: https://go-review.googlesource.com/22067 Reviewed-by: Alan Donovan <adonovan@google.com>