fatedier 0f1005ff61 using glide | %!s(int64=7) %!d(string=hai) anos | |
---|---|---|
.. | ||
.gitignore | %!s(int64=7) %!d(string=hai) anos | |
.travis.yml | %!s(int64=7) %!d(string=hai) anos | |
LICENSE | %!s(int64=7) %!d(string=hai) anos | |
README.md | %!s(int64=7) %!d(string=hai) anos | |
auth.go | %!s(int64=7) %!d(string=hai) anos | |
auth_test.go | %!s(int64=7) %!d(string=hai) anos | |
credentials.go | %!s(int64=7) %!d(string=hai) anos | |
credentials_test.go | %!s(int64=7) %!d(string=hai) anos | |
request.go | %!s(int64=7) %!d(string=hai) anos | |
request_test.go | %!s(int64=7) %!d(string=hai) anos | |
resolver.go | %!s(int64=7) %!d(string=hai) anos | |
resolver_test.go | %!s(int64=7) %!d(string=hai) anos | |
ruleset.go | %!s(int64=7) %!d(string=hai) anos | |
ruleset_test.go | %!s(int64=7) %!d(string=hai) anos | |
socks5.go | %!s(int64=7) %!d(string=hai) anos | |
socks5_test.go | %!s(int64=7) %!d(string=hai) anos |
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)
}