shadowsocks /shadowsocks-c
Self-contained Shadowsocks implementation in C with libuv, asynchronous DNS, and portable static builds for Linux, macOS, Windows, and FreeBSD.
★ 16,184⑂ 6,192👁 718⑃ 824● 2,245▤ 76
-1
日增长
16,184
stars
6,192
forks
718
watchers
824
prs
2,245
issues
76
releases
README
shadowsocks-c Intro shadowsocks-c is a lightweight secured SOCKS5 proxy for embedded devices and low-end boxes. It is a port of Shadowsocks created by @clowwindy, and maintained by @madeye and @linusyang. Current version: 3.3.6 | Changelog CLI reference and configuration guide are generated from the source with Doxygen and published after updates to master. An opt-in printable TCP salt experiment is available through ss-local --printable-salt or "printable_salt": true in the config file. It is disabled by default. Use --help for grouped CLI options and --version for version information. See CLI conventions for the long flags, short aliases, and configuration precedence. Community See the contribution guide for development setup, testing, and pull request guidance. Everyone participating in this project is expected to follow our Code of Conduct. Project history and rename This repository began as shadowsocks-libev, the lightweight C implementation of Shadowsocks built around the libev event loop. It later entered a bug-fix-only maintenance phase, with new development directed toward shadowsocks-rust. In September 2026, the C implementation was modernized with a focus on self-contained builds and portability. The build modernization bundled pinned dependency sources, removed several external dependencies, and added static-build validation across platforms. The subsequent migration replaced libev with libuv, added Windows IOCP and macOS kqueue support, expanded asynchronous runtime DNS coverage, and strengthened CI lint checks. The project and GitHub repository were renamed shadowsocks-c to reflect its continuing identity as a pure C implementation. This repository retains the shadowsocks-libev commit history and releases. The canonical repository is now shadowsocks/shadowsocks-c. Compatibility with shadowsocks-libev - Commands such as ss-local and ss-server, the shadowsocks.h API, and the embedding library ABI remain compatible. - New builds provide libshadowsocks-c and the CMake/pkg-config package shadowsocks-c. Legacy library filenames and the shadowsocks-libev package lookup name remain available as compatibility aliases. - Existing configuration paths, distribution package names, and service names are retained. References to shadowsocks-libev in the installation examples below refer to those existing integrations. See the modernization notes for build options and platform support, and the performance measurements for measured tradeoffs. Features shadowsocks-c is written in pure C and depends on libuv. It's designed to be a lightweight implementation of shadowsocks protocol, in order to keep the resource usage as low as possible. For a full list of feature comparison between different versions of shadowsocks, refer to the Wiki page. Quick Start Docker (recommended) Docker is the recommended way to run a server. The image contains the bundled, fully static C binaries and supports Linux AMD64 and ARM64,
Top issues
#2860I think SS is detected by GFW30 comments · 2021-11-09#2915Broken build in Mingw6 comments · 2022-07-09#2996start_ss_local_server_with_callback CRASH: EXC_BAD_ACCESS (code=1, address=0x0)3 comments · 2024-04-03#2841Bug or design on the '-t' param of the ss-server3 comments · 2021-08-20#3028cmake build error on freebsd 15.02 comments · 2026-02-22#2855ss-tunnel doesn't forward IPv6 UDP packets2 comments · 2021-09-19#3027cmake build error on CentOS Stream 101 comments · 2026-02-12#2984Cannot access some websites when opening ipv6 Routing on Android device1 comments · 2023-11-08
Latest release
v3.3.6 v3.3.6 2026-02-09Changes - Reduce memory copies in crypto encrypt/decrypt paths - Add bswap_data() to swap buffer pointers instead of copying - Replace brealloc+memcpy with pointer swaps in AEAD and stream codecs - Add in-place fast paths for non-Salsa20 stream ciphers - Use index tracking instead of memmove in aead_decrypt chunked reassembly - Fix unbounded buffer growth in aead_decrypt chunk reassembly Full changelog https://github.com/shadowsocks/shadowsocks-libev/compare/v3.3.5...v3.3.6