commit | 562ac074ef9d89137364cc45269354b09500ab6d | [log] [tgz] |
---|---|---|
author | Tuo Shan <sturbo89@gmail.com> | Wed Apr 13 14:20:35 2016 -0400 |
committer | Andrew Gerrand <adg@golang.org> | Thu Apr 14 00:33:16 2016 +0000 |
tree | 07b469f45c0ea3afd4fa887e1a0178cb0a956c2b | |
parent | 056da16a40b46847cedaaaef42cfb48a9a808677 [diff] |
gddo-server: add a trust proxy flag identify requests by real ip. X-Real-Ip is used as the remote address to identify the original address sent through the requests to detect robots. This fixes golang/gddo#393 Change-Id: I322061dd355340d864376e656185bd84fbbc9432 Reviewed-on: https://go-review.googlesource.com/21996 Reviewed-by: Andrew Gerrand <adg@golang.org>