Skip to content

Commit

Permalink
use ${SOCKS_PORT}
Browse files Browse the repository at this point in the history
  • Loading branch information
martindg authored and web-flow committed May 27, 2023
1 parent 285b924 commit a5216a9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,20 @@ consecutive requests will be routed randomly through different TOR proxies.

## How to use

```shell
SOCKS_PORT=9999
```

1. Run the container
```shell
podman run --rm -it -e NUM=3 -p 9999:9999 ghcr.io/martindg/torism
podman run --rm -it -e NUM=3 -p ${SOCKS_PORT}:9999 ghcr.io/martindg/torism
```
(or if you prefer Docker)
```shell
docker run --rm -it -e NUM=3 -p 9999:9999 ghcr.io/martindg/torism
docker run --rm -it -e NUM=3 -p ${SOCKS_PORT}:9999 ghcr.io/martindg/torism
```

2. Validate the connection
```shell
curl -x socks://localhost:9000 https://check.torproject.org/api/ip
curl -x socks://localhost:${SOCKS_PORT} https://check.torproject.org/api/ip
```

0 comments on commit a5216a9

Please sign in to comment.