mirror of
https://codeberg.org/YGGverse/psocks.git
synced 2026-04-01 00:45:27 +00:00
rename list to rules, change api to free list control namespace
This commit is contained in:
parent
949a8a3b2c
commit
c821fa7492
5 changed files with 43 additions and 41 deletions
|
|
@ -25,7 +25,7 @@ RUST_LOG=trace cargo run -- --allow=http://localhost/allow.txt \
|
|||
* use http://127.0.0.1:8010 for API:
|
||||
* `/api/allow/{domain.com}` - add rule to the current session (and `--cache` if defined)
|
||||
* `/api/block/{domain.com}` - delete rule from the current session (and `--cache` if defined)
|
||||
* `/api/list` - return active rules (from server memory)
|
||||
* `/api/rules` - return active rules (from server memory)
|
||||
* `/api/cache/clean` - clean the `--cache` file (returns deleted rules or `null` if not enabled)
|
||||
|
||||
### Allow list example
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue