Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
d0u9 opened this issue Nov 7, 2023 · 2 comments

Comments

@d0u9
Copy link

d0u9 commented Nov 7, 2023

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.

@zonyitoo
Copy link
Collaborator

zonyitoo commented Nov 8, 2023

Not supported currently.

@zonyitoo
Copy link
Collaborator

zonyitoo commented Nov 9, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants