From 0d32b71317472ab5d93aa98f8db02609ed1318bc Mon Sep 17 00:00:00 2001 From: GrĂ©goire DuchĂȘne Date: Thu, 26 Mar 2020 21:18:30 +0000 Subject: Allow listening on a specific address The address is read from the ADDR environment variable. Defaults to every address. --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 1fe7219..ca9464e 100644 --- a/README.md +++ b/README.md @@ -11,5 +11,9 @@ You need to set up the following environment variables for it to work: e.g. `golang.org/x/` for `golang.org/x/image`, and * `VCS` for the type of VCS you are using, e.g. `git`. -Additionally, the version under `gcp/` will bind to the port passed in -the `PORT` environment variable, or 8080 if that variable is not set. +Additionally, the version under `gcp/` will use: + +* `ADDR` for the address to listen on, defaulting to every address, and +* `PORT` for the port to listen on, defaulting to 8080. + +See https://golang.org/pkg/net/#Dial for details of the address format. -- cgit v1.2.3-70-g09d2