fatedier 0f1005ff61 using glide | il y a 7 ans | |
---|---|---|
.. | ||
.gitignore | il y a 7 ans | |
.travis.yml | il y a 7 ans | |
LICENSE | il y a 7 ans | |
README.md | il y a 7 ans | |
auth.go | il y a 7 ans | |
auth_test.go | il y a 7 ans | |
credentials.go | il y a 7 ans | |
credentials_test.go | il y a 7 ans | |
request.go | il y a 7 ans | |
request_test.go | il y a 7 ans | |
resolver.go | il y a 7 ans | |
resolver_test.go | il y a 7 ans | |
ruleset.go | il y a 7 ans | |
ruleset_test.go | il y a 7 ans | |
socks5.go | il y a 7 ans | |
socks5_test.go | il y a 7 ans |
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)
}