Skip to content

Commit bd97937

Browse files
authored
README.md: update examples
1 parent 0b85afc commit bd97937

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,26 +63,26 @@ Go toolchain expects to talk to the plugin.
6363
### Running a Module Proxy
6464

6565
To enable a caching module proxy, use the `--modproxy` flag to `serve`. The
66-
module proxy uses HTTP, not the plugin interface:
66+
module proxy uses HTTP, not the plugin interface, use `--http` to set the address:
6767

6868
```sh
6969
go-cache-plugin serve \
7070
--socket=/tmp/gocache.sock \
71-
--modproxy=localhost:5970 \
71+
--http=localhost:5970 --modproxy \
7272
--cache-dir=/tmp/gocache \
7373
# ... other flags
7474
```
7575

7676
To tell the Go toolchain about the proxy, set:
7777

7878
```sh
79-
export GOPROXY=http://localhost:5970 # use the --modproxy address
79+
export GOPROXY=http://localhost:5970/mod # use the --http address
8080
```
8181

8282
If you want to also proxy queries to `sum.golang.org`, also add:
8383

8484
```sh
85-
export GOSUMDB='sum.golang.org http://locahost:5970/sumdb/sum.golang.org'
85+
export GOSUMDB='sum.golang.org http://locahost:5970/mod/sumdb/sum.golang.org'
8686
```
8787

8888
## References

0 commit comments

Comments
 (0)