commit | bb2a4ed2d77c5ebb58ace5e1466acec69a729a68 | [log] [tgz] |
---|---|---|
author | Andrew Bonventre <andybons@golang.org> | Thu Jan 04 20:05:37 2018 -0500 |
committer | Andrew Bonventre <andybons@golang.org> | Fri Jan 05 02:26:47 2018 +0000 |
tree | 0efb845ceae7eea62a5c4a8e5d23c98c646a4818 | |
parent | afbed4f2e0285fe89e4363a02a104bbccc369ea1 [diff] |
playground: loosen restrictions on IPs permitted to share We seem to be getting false-positives in core functionality. For instance, golang.org/share proxies the request to play.golang.org, and the X-AppEngine-Country header seen by play is 'ZZ' which is currently a restricted country. Since play.golang.org is blocked in places where we care to restrict its use, it sort of doesn’t really matter. So only block the one country that cares. Fixes golang/go#17765 Fixes golang/go#23038 Change-Id: If690a872d41d7db381e4623763a3d1b5b17a0d86 Reviewed-on: https://go-review.googlesource.com/86316 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This subrepository holds the source for the Go playground: https://play.golang.org/
To submit changes to this repository, see http://golang.org/doc/contribute.html.
# build the image docker build -t playground .
docker run --rm -d -p 8080:8080 playground # run go some code cat /path/to/code.go | go run client.go | curl --data @- localhost:8080/compile
gcloud --project=golang-org --account=person@example.com app deploy app.yaml
To submit changes to this repository, see http://golang.org/doc/contribute.html.