socks protocol implements by golang, support socks4, socks4a and socks5
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Dingjun 0cdf31ddaf add optional Dial option
the dial function provider a way to connect to server
8 years ago
cmd/server add optional Dial option 8 years ago
.gitignore Initial commit 9 years ago
LICENSE add license file 9 years ago
README.md Initial commit 9 years ago
socks.go add optional Dial option 8 years ago
socks4.go add optional Dial option 8 years ago
socks5.go add optional Dial option 8 years ago

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()
    }
}