shadowsocks-rust
shadowsocks-rust copied to clipboard
Is it possible to bind a local to specific server in extended configuration format.
For some locals, I want to bind it directly to a specific server without the intervention of loader balancer. For example:
{
"local_address": "127.0.0.1",
"local_port": 1080,
"locals": [
{
server: 0 // bind to the servers[0]
},
{
server: 1 // bind to the servers[1]
},
],
"servers": [
{
"address": "server1.com",
"port": 8389,
"method": "aes-256-gcm",
"password": "your-password",
},
{
"server": "server2.com",
"server_port": 8388,
"method": "chacha20-ietf-poly1305",
},
],
....
}
For locals[0]
and locals[1]
, they both point to server[0]
and disable the loader balancer.
Not supported currently.
Maybe we can add a "group"
property for servers and let local instances specify which group of servers to be used.
I don't have that a lot of spare time to implement that right now.