implement session cache

This commit is contained in:
postscriptum 2026-03-22 12:30:09 +02:00
parent e5268e49f1
commit 8de35ff3a6
5 changed files with 123 additions and 31 deletions

View file

@ -4,18 +4,19 @@ Experimental async SOCKS5 (TCP/UDP) proxy server based on [fast-socks5](https://
## Roadmap
* [ ] Range support
* [ ] Local Web-API
* [x] Web JSON/API
* [x] Block stats
* [x] In-memory list update (without server restart)
* [ ] Persist changes option
* [ ] Performance optimization
* [x] Persist changes option (see `-c`, `--cache`)
* [ ] Web UI
* [ ] Performance optimization
## Usage
``` bash
RUST_LOG=psocks=trace cargo run -- -a=/path/to/allow1.txt \
-a=http://localhost/allow2.txt \
RUST_LOG=psocks=trace cargo run -- -a=http://localhost/allow.txt \
-a=/path/to/allow.txt \
-c=/path/to/cache.txt \
no-auth
```
* set `socks5://127.0.0.1:1080` proxy in your application
@ -25,8 +26,8 @@ RUST_LOG=psocks=trace cargo run -- -a=/path/to/allow1.txt \
### Allow list example
``` /path/to/allow1.txt
# /path/to/allow1.txt
``` /path/to/allow.txt
# /path/to/allow.txt
// exact match
duckduckgo.com