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
C++GPL-3.0Created 2012-12-15github.com/shadowsocks/shadowsocks-rust
下载:v3.3.6v3.3.6 ↓3.3.62026-02-09
-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

Latest release

v3.3.6 v3.3.6 2026-02-09
Changes

- 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

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON