socks protocol implements by golang, support socks4, socks4a and socks5
Go to file
fangdingjun f0f0d1f88d go fmt
cmd/server Initial commit
.gitignore Initial commit
LICENSE add license file
README.md Initial commit
socks.go Initial commit
socks4.go go fmt
socks5.go Initial commit

README.md

socks-go

A socks server implement by golang, support socks4/4a, socks5.

usage

Usage example:

import "github.com/fangdingjun/socks"

fucn main(){
    l, _ := net.Listen("tcp", ":1080")
    for {
        conn, _ := l.Accept()
        s := socks.SocksConn{conn}
        go s.Serve()
    }
}