Jigsaw-Code / outline-apps

Outline Client and Manager, developed by Jigsaw. Outline Manager makes it easy to create your own VPN server. Outline Client lets you share access to your VPN with anyone in your network, giving them access to the free and open internet.
https://getoutline.org/
Apache License 2.0
8.4k stars 1.36k forks source link

Support multi-server in ssconf (Dynamic Access Keys) #1808

Open moranno opened 9 months ago

moranno commented 9 months ago

I tried to use the following json config for my Dynamic Access Keys

[
    {
        "server": "127.0.0.1",
        "server_port": 4444,
        "password": "98cb61c8-76dc-4d0e-939c-3ed9e11327b5",
        "method": "chacha20-ietf-poly1305",
        "remarks": "sstest"
    },
    {
        "server": "127.0.0.1",
        "server_port": 4443,
        "password": "98cb61c8-76dc-4d0e-939c-3ed9e11327b5",
        "method": "chacha20-ietf-poly1305",
        "remarks": "sstest1"
    }
]

But the Outline client pops an error:

Outline
ServerAccessKeyInvalid: Failed to parse VPN information fetched from dynamic access key.
Cause: TypeError: Missing JSON fields: method, password, server, server_port.

What did I do wrong? Thanks

daniellacosse commented 8 months ago

Thank you for flagging this! We desperately want to support this, but currently don't. Changing to a feature request.

rorosin commented 1 month ago

Actually, this functionality is already defined in original ShadowSocks' standard for online configuration delivery - SIP008