|
|
@@ -76,7 +76,7 @@ $ openssl rand -hex 16
|
|
76
|
76
|
or
|
|
77
|
77
|
|
|
78
|
78
|
```console
|
|
79
|
|
-$ head -c 512 | sha1sum | cut -f 1 -d ' '
|
|
|
79
|
+$ head -c 512 /dev/urandom | md5sum | cut -f 1 -d ' '
|
|
80
|
80
|
```
|
|
81
|
81
|
|
|
82
|
82
|
Now run the tool:
|
|
|
@@ -90,10 +90,10 @@ This tool will listen on port 3128 by default with the given secret.
|
|
90
|
90
|
# One-line runner
|
|
91
|
91
|
|
|
92
|
92
|
```
|
|
93
|
|
-$ docker run --name mtg --restart=unless-stopped -p 444:3128 -p 3129:3129 -d nineseconds/mtg -a 444 $(openssl rand -hex 16)
|
|
|
93
|
+$ docker run --name mtg --restart=unless-stopped -p 3128:3128 -p 3129:3129 -d nineseconds/mtg $(openssl rand -hex 16)
|
|
94
|
94
|
```
|
|
95
|
95
|
|
|
96
|
|
-You will have this tool up and running on port 444. Now curl
|
|
|
96
|
+You will have this tool up and running on port 3128. Now curl
|
|
97
|
97
|
`localhost:3129` to get `tg://` links or do `docker logs mtg`. Also,
|
|
98
|
98
|
port 3129 will show you some statistics if you are interested in.
|
|
99
|
99
|
|