mirror of
https://codeberg.org/YGGverse/psocks.git
synced 2026-03-31 16:35:28 +00:00
implement session cache
This commit is contained in:
parent
e5268e49f1
commit
8de35ff3a6
5 changed files with 123 additions and 31 deletions
17
README.md
17
README.md
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue