mirror of
https://codeberg.org/YGGverse/psocks.git
synced 2026-03-31 16:35:28 +00:00
implement in-memory ruleset update
This commit is contained in:
parent
b03bdd0e3a
commit
30a77072ed
4 changed files with 85 additions and 32 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue