mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-02-09 10:09:17 +08:00
ref #452 - support `locals` in configuration file, running multiple local server instance simultaneously - support `unix://` in `dns` configuration BREAKING CHANGE: - `sslocal`'s `--dns-addr` is now only available in Android - shadowsocks-service's `Config` struct have lots of changes
35 lines
845 B
JSON
35 lines
845 B
JSON
{
|
|
"locals": [
|
|
{
|
|
"local_address": "127.0.0.1",
|
|
"local_port": 1080
|
|
},
|
|
{
|
|
"local_address": "127.0.0.1",
|
|
"local_port": 3128,
|
|
"protocol": "http"
|
|
},
|
|
{
|
|
"local_address": "127.0.0.1",
|
|
"local_port": 53,
|
|
"protocol": "tunnel",
|
|
"forward_address": "8.8.8.8",
|
|
"forward_port": 53
|
|
}
|
|
],
|
|
"servers": [
|
|
{
|
|
"server": "127.0.0.1",
|
|
"server_port": 8384,
|
|
"password": "password-svr2",
|
|
"method": "chacha20-ietf-poly1305"
|
|
},
|
|
{
|
|
"server": "127.0.0.1",
|
|
"server_port": 8385,
|
|
"password": "password-svr3",
|
|
"method": "aes-128-gcm"
|
|
}
|
|
]
|
|
}
|