fatedier 0f1005ff61 using glide | 7 年之前 | |
---|---|---|
.. | ||
.gitignore | 7 年之前 | |
.travis.yml | 7 年之前 | |
LICENSE | 7 年之前 | |
README.md | 7 年之前 | |
auth.go | 7 年之前 | |
auth_test.go | 7 年之前 | |
credentials.go | 7 年之前 | |
credentials_test.go | 7 年之前 | |
request.go | 7 年之前 | |
request_test.go | 7 年之前 | |
resolver.go | 7 年之前 | |
resolver_test.go | 7 年之前 | |
ruleset.go | 7 年之前 | |
ruleset_test.go | 7 年之前 | |
socks5.go | 7 年之前 | |
socks5_test.go | 7 年之前 |
Provides the socks5
package that implements a SOCKS5 server.
SOCKS (Secure Sockets) is used to route traffic between a client and server through
an intermediate proxy layer. This can be used to bypass firewalls or NATs.
The package has the following features:
The package still needs the following:
Below is a simple example of usage
// Create a SOCKS5 server
conf := &socks5.Config{}
server, err := socks5.New(conf)
if err != nil {
panic(err)
}
// Create SOCKS5 proxy on localhost port 8000
if err := server.ListenAndServe("tcp", "127.0.0.1:8000"); err != nil {
panic(err)
}