Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/armon/go-socks5
/ functions
Functions
47 in github.com/armon/go-socks5
⨍
Functions
47
◇
Types & classes
18
↓ 29 callers
Method
Write
([]byte)
request.go:85
↓ 10 callers
Function
sendReply
sendReply is used to send a reply message
request.go:307
↓ 5 callers
Function
New
New creates a new Server and potentially returns an error
socks5.go:61
↓ 5 callers
Method
authenticate
authenticate is used to handle connection authentication
auth.go:113
↓ 3 callers
Method
Allow
(ctx context.Context, req *Request)
ruleset.go:9
↓ 3 callers
Method
Allow
(ctx context.Context, req *Request)
ruleset.go:30
↓ 3 callers
Function
NewRequest
NewRequest creates a new Request from the tcp connection
request.go:90
↓ 3 callers
Method
Valid
(user, password string)
credentials.go:11
↓ 3 callers
Method
handleRequest
handleRequest is used for request processing after authentication
request.go:119
↓ 2 callers
Function
PermitAll
PermitAll returns a RuleSet which allows all types of connections
ruleset.go:13
↓ 2 callers
Function
proxy
proxy is used to suffle data from src to destination, and sends errors down a dedicated channel
request.go:358
↓ 1 callers
Method
Address
Address returns a string suitable to dial; prefer returning IP-based address, fallback to FQDN
request.go:60
↓ 1 callers
Method
Authenticate
(reader io.Reader, writer io.Writer)
auth.go:34
↓ 1 callers
Method
CloseWrite
()
request.go:353
↓ 1 callers
Method
GetCode
()
auth.go:35
↓ 1 callers
Method
ListenAndServe
ListenAndServe is used to create a listener and serve on it
socks5.go:100
↓ 1 callers
Function
PermitNone
PermitNone returns a RuleSet which disallows all types of connections
ruleset.go:18
↓ 1 callers
Method
RemoteAddr
()
request.go:86
↓ 1 callers
Method
Resolve
(ctx context.Context, name string)
resolver.go:11
↓ 1 callers
Method
Resolve
(ctx context.Context, name string)
resolver.go:17
↓ 1 callers
Method
Rewrite
(ctx context.Context, request *Request)
request.go:40
↓ 1 callers
Method
Serve
Serve is used to serve connections from a listener
socks5.go:109
↓ 1 callers
Method
ServeConn
ServeConn is used to serve a single connection.
socks5.go:121
↓ 1 callers
Method
String
()
request.go:51
↓ 1 callers
Method
Valid
(user, password string)
credentials.go:5
↓ 1 callers
Method
handleAssociate
handleAssociate is used to handle a connect command
request.go:236
↓ 1 callers
Method
handleBind
handleBind is used to handle a connect command
request.go:217
↓ 1 callers
Method
handleConnect
handleConnect is used to handle a connect command
request.go:159
↓ 1 callers
Function
noAcceptableAuth
noAcceptableAuth is used to handle when we have no eligible authentication mechanism
auth.go:134
↓ 1 callers
Function
readAddrSpec
readAddrSpec is used to read AddrSpec. Expects an address type byte, follwed by the address and port
request.go:256
↓ 1 callers
Function
readMethods
readMethods is used to read the number of methods and proceeding auth methods
auth.go:141
Method
Authenticate
(reader io.Reader, writer io.Writer)
auth.go:45
Method
Authenticate
(reader io.Reader, writer io.Writer)
auth.go:60
Method
GetCode
()
auth.go:41
Method
GetCode
()
auth.go:56
Method
RemoteAddr
()
request_test.go:22
Function
TestDNSResolver
(t *testing.T)
resolver_test.go:9
Function
TestNoAuth
(t *testing.T)
auth_test.go:8
Function
TestNoSupportedAuth
(t *testing.T)
auth_test.go:94
Function
TestPasswordAuth_Invalid
(t *testing.T)
auth_test.go:67
Function
TestPasswordAuth_Valid
(t *testing.T)
auth_test.go:29
Function
TestPermitCommand
(t *testing.T)
ruleset_test.go:9
Function
TestRequest_Connect
(t *testing.T)
request_test.go:26
Function
TestRequest_Connect_RuleFail
(t *testing.T)
request_test.go:101
Function
TestSOCKS5_Connect
(t *testing.T)
socks5_test.go:14
Function
TestStaticCredentials
(t *testing.T)
credentials_test.go:7
Method
Write
(b []byte)
request_test.go:18