diff options
author | James Mills <prologic@shortcircuit.net.au> | 2017-06-26 01:54:33 -0700 |
---|---|---|
committer | James Mills <prologic@shortcircuit.net.au> | 2017-06-26 01:54:33 -0700 |
commit | 76f337705e6d766e5f4f3799505ede8ec4ad43c9 (patch) | |
tree | 138a642b62bfced91aa9f7966a3eeea4a71df615 | |
parent | Bump (diff) | |
download | gopherproxy-76f337705e6d766e5f4f3799505ede8ec4ad43c9.tar.gz gopherproxy-76f337705e6d766e5f4f3799505ede8ec4ad43c9.tar.bz2 gopherproxy-76f337705e6d766e5f4f3799505ede8ec4ad43c9.zip |
Set sensible defaults
-rw-r--r-- | Dockerfile | 1 | ||||
-rw-r--r-- | cmd/gopherproxy/main.go | 4 |
2 files changed, 2 insertions, 3 deletions
@@ -3,7 +3,6 @@ FROM golang:alpine | |||
3 | EXPOSE 80/tcp | 3 | EXPOSE 80/tcp |
4 | 4 | ||
5 | ENTRYPOINT ["gopherproxy"] | 5 | ENTRYPOINT ["gopherproxy"] |
6 | CMD ["-bind", "0.0.0.0:80", "-uri", "floodgap.com"] | ||
7 | 6 | ||
8 | RUN \ | 7 | RUN \ |
9 | apk add --update git && \ | 8 | apk add --update git && \ |
diff --git a/cmd/gopherproxy/main.go b/cmd/gopherproxy/main.go index bc5050e..fa20c4e 100644 --- a/cmd/gopherproxy/main.go +++ b/cmd/gopherproxy/main.go | |||
@@ -8,8 +8,8 @@ import ( | |||
8 | ) | 8 | ) |
9 | 9 | ||
10 | var ( | 10 | var ( |
11 | bind = flag.String("bind", ":80", "[int]:port to bind to") | 11 | bind = flag.String("bind", "0.0.0.0:80", "[int]:port to bind to") |
12 | uri = flag.String("uri", "127.0.0.1:70", "<host>:[port] to proxy to") | 12 | uri = flag.String("uri", "floodgap.com", "<host>:[port] to proxy to") |
13 | ) | 13 | ) |
14 | 14 | ||
15 | func main() { | 15 | func main() { |