mirror of
https://codeberg.org/YGGverse/psocks.git
synced 2026-03-31 16:35:28 +00:00
update documentation
This commit is contained in:
parent
b5d0742ca7
commit
9a36160c6d
1 changed files with 6 additions and 6 deletions
12
README.md
12
README.md
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue