Server is accepting connections and handling the details of the SOCKS4 protocol
| 10 | |
| 11 | // Server is accepting connections and handling the details of the SOCKS4 protocol |
| 12 | type Server struct { |
| 13 | // bind is the address to listen on |
| 14 | Bind string |
| 15 | // ProxyDial specifies the optional proxyDial function for |
| 16 | // establishing the transport connection. |
| 17 | ProxyDial statute.ProxyDialFunc |
| 18 | // UserConnectHandle gives the user control to handle the TCP CONNECT requests |
| 19 | UserConnectHandle statute.UserConnectHandler |
| 20 | // Logger error log |
| 21 | Logger statute.Logger |
| 22 | // Context is default context |
| 23 | Context context.Context |
| 24 | // BytesPool getting and returning temporary bytes for use by io.CopyBuffer |
| 25 | BytesPool statute.BytesPool |
| 26 | } |
| 27 | |
| 28 | func NewServer(options ...ServerOption) *Server { |
| 29 | s := &Server{ |
nothing calls this directly
no outgoing calls
no test coverage detected