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

Standardize more fields for Shadowsocks JSON #143

Open
Mygod opened this issue Feb 24, 2019 · 1 comment
Open

Standardize more fields for Shadowsocks JSON #143

Mygod opened this issue Feb 24, 2019 · 1 comment

Comments

@Mygod
Copy link
Contributor

Mygod commented Feb 24, 2019

Currently official doc only lists a few field, however, these fields are widely used in implementations:

We should probably standardize these as well.

Furthermore, I should probably mention that shadowsocks-android also uses a number of other extensions as evidenced here. Maybe we should have some ways to allow for extended fields as well.

@zonyitoo
Copy link
Contributor

zonyitoo commented Jul 4, 2020

Propose some useful fields that are used in shadowsocks-rust:

{
    "ipv6_first": true,  // Resolve domains to IPv6 first if possible, maybe we could have an "ipv6_only", too

    "udp_timeout": 5,  // Durations of seconds that a UDP associations will be kept alive
    "udp_max_associations": 100,  // Maximum number of UDP associations will be kept in server

    "dns": "8.8.8.8",  // An IP address

    "no_delay": true,  // sockopt TCP_NODELAY

    "nofile": 10240,  // rlimit file descriptor soft & hard limit in *NIX system

    "manager_address": "/tmp/shadowsocks-manager.sock",  // The address of manager
    "manager_port": 6300,  // If manager_address is an IP address, then this field sets the port that manager is listening to

    // Multiple servers
    "servers": [
        {
            "address": "127.0.0.1",  // The same as "server"
            "port": 1234, // The same as "server_port"
            "method": "plain",
            "password": "pwd",
            "timeout": 5,
            "plugin": "plugin",
            "plugin_opts": "plugin_opts"
        }
    ]
}

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