MCPcopy Index your code
hub / github.com/0990/socks5

github.com/0990/socks5 @v1.0.9

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.9 ↗ · + Follow
154 symbols 411 edges 19 files 6 documented · 4%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

socks5

中文文档

A lightweight SOCKS proxy server that supports socks4, socks4a, and socks5 protocols. The code is simple and easy to read, just like the original SOCKS protocol.

Feature

Usage

Download the latest program for your operating system and architecture from the Release page. Extracting,then execute the binary file directly (Linux platform requires execution permission)

./ss5

or

./ss5 -c ./ss5.json

Docker installation

Configuration

The ss5.json file in the extracted directory is the configuration file

Simple configuration instructions:
``` ListenPort The listening port for TCP and UDP proxies, default is 1080 UserName,Password Fill in if username/password authentication is required, default is empty LogLevel Log level (debug, info, warn, error)

[Advanced configuration](doc/config.md)
## Package Usage

go get github.com/0990/socks5

Here is a simple example:

s := socks5.NewServer(socks5.ServerCfg{ ListenPort: 1080, UserName: "", Password: "", UDPTimout: 60, TCPTimeout: 60, LogLevel:"error" }) err := s.Run() if err != nil { log.Fatalln(err) } ```

TODO

  • Support BIND command

Thanks

txthinking/socks5

Extension points exported contracts — how you extend this code

Server (Interface)
(no doc) [1 implementers]
server.go
Stream (Interface)
(no doc)
conn_socks5.go

Core symbols most depended-on inside this repo

Write
called by 23
udp.go
ToBytes
called by 15
protocol_socks5.go
String
called by 11
addr.go
Get
called by 9
udp.go
Read
called by 8
udp.go
SetReadDeadline
called by 7
conn_socks5.go
PutBuf
called by 7
pkg/pool/buf.go
NewReply
called by 6
protocol_socks5.go

Shape

Function 70
Method 60
Struct 21
Interface 2
TypeAlias 1

Languages

Go100%

Modules by API surface

protocol_socks5.go31 symbols
conn_socks5.go16 symbols
server_test.go12 symbols
server.go12 symbols
udp.go11 symbols
protocol_socks4.go11 symbols
client_test.go10 symbols
config.go8 symbols
client_socks5.go8 symbols
addr.go6 symbols
logconfig/log.go5 symbols
conn_socks4.go5 symbols

For agents

$ claude mcp add socks5 \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact