update documentation

This commit is contained in:
postscriptum 2026-03-22 21:42:16 +02:00
parent b5d0742ca7
commit 9a36160c6d

View file

@ -19,15 +19,15 @@ Experimental async SOCKS5 (TCP/UDP) proxy server based on [fast-socks5](https://
## Usage ## Usage
``` bash ``` bash
RUST_LOG=trace cargo run -- -a=http://localhost/allow.txt \ RUST_LOG=trace cargo run -- --allow=http://localhost/allow.txt \
-a=/path/to/allow.txt \ --allow=/path/to/allow.txt \
-c=/path/to/cache.txt \ --cache=/path/to/cache.txt \
no-auth no-auth
``` ```
* set `socks5://127.0.0.1:1080` proxy in your application * set `socks5://127.0.0.1:1080` proxy in your application
* open http://127.0.0.1:8010 in browser for global stats: * open http://127.0.0.1:8010 in browser for stats:
* `/allow/domain.com` - add rule to the current session * `/allow/domain.com` - add rule to the current session (and `--cache` if defined)
* `/block/domain.com` - delete rule from the current session * `/block/domain.com` - delete rule from the current session (and `--cache` if defined)
### Allow list example ### Allow list example