implement in-memory ruleset update

This commit is contained in:
postscriptum 2026-03-22 09:18:09 +02:00
parent b03bdd0e3a
commit 30a77072ed
4 changed files with 85 additions and 32 deletions

View file

@ -7,7 +7,8 @@ Experimental async SOCKS5 (TCP/UDP) proxy server based on [fast-socks5](https://
* [ ] Range support
* [ ] Local Web-API
* [x] Block stats
* [ ] In-memory list update (without server restart)
* [x] In-memory list update (without server restart)
* [ ] Persist changes option
* [ ] Performance optimization
## Usage
@ -18,7 +19,9 @@ RUST_LOG=psocks=trace cargo run -- -a=/path/to/allow1.txt \
no-auth
```
* set `socks5://127.0.0.1:1080` proxy in your application
* open http://127.0.0.1:8010 in browser for stats & control API
* open http://127.0.0.1:8010 in browser for global stats:
* http://127.0.0.1:8010/allow/domain.com - add rule to the current session
* http://127.0.0.1:8010/block/domain.com - delete rule from the current session
### Allow list example