shadowsocks-rust icon indicating copy to clipboard operation
shadowsocks-rust copied to clipboard

Is it possible to bind a local to specific server in extended configuration format.

Open d0u9 opened this issue 1 year ago • 2 comments

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.

d0u9 avatar Nov 07 '23 06:11 d0u9

Not supported currently.

zonyitoo avatar Nov 08 '23 04:11 zonyitoo

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.

zonyitoo avatar Nov 09 '23 04:11 zonyitoo