SIP003 plugin for shadowsocks, based on WebSocket.
- CMake 3.16+
cmake -B build
cmake --build buildss-local -c xxx.json
{
"server": "xxx",
"server_port": 443,
"method": "none",
"local_address": "0.0.0.0",
"local_port": 1080,
"plugin": "/path/to/wss-proxy-client",
"plugin_opts": "tls;host=xxx;path=/xxx;mux=0"
}Options compatible with v2ray-plugin
tls,tlsfor https / wss, otherwise http / wshost, host namepath, default/loglevel, defaultINFO, supportDEBUG,INFO,WARN,ERRORmux, default1(only0is supported, specify for compatible withv2ray-plugin)
ws(since 0.2.6, e7b7f36), default1to use websocket after handshake,0to use raw shadowsocks after handshake- don't use it if you're unsure
extra-listen-port(since 0.3.0, 689f0e7), extra listen port for shadowsocks client without sip003usyslog(since 0.3.3, 47d4681), log to syslog if supportedipv6(since 0.3.4, a8b5f71), prefer ipv6 (should fallback to ipv4 if no ipv6)http2(since 0.4.0, WebSocket over HTTP/2, RFC 8441)http3(since 0.4.0, WebSocket over HTTP/3, RFC 9220)
ss-server -c xxx.json
{
"server":"127.0.0.1",
"server_port":3448,
"timeout":60,
"method":"none",
"plugin": "/path/to/wss-proxy-server",
"plugin_opts": "mux=0"
}Options compatible with v2ray-plugin
loglevel, defaultINFO, supportDEBUG,INFO,WARN,ERRORmux, default1(only0is supported, specify for compatible withv2ray-plugin)
Unsupported options:
tls, use behind nginx, plugin server doesn't use tls.host, use behind nginx, plugin server support any host.path, use behind nginx, plugin server support any path.
udp-port, udp port to shadowsocks server without sip003u- There is no
tcp-port, which is environmentSS_LOCAL_PORT.
- There is no
syslog(since 0.3.3, 47d4681), log to syslog if supported