const ConnectCommand …
const BindCommand …
const AssociateCommand …
const ipv4Address …
const fqdnAddress …
const ipv6Address …
const successReply …
const serverFailure …
const ruleFailure …
const networkUnreachable …
const hostUnreachable …
const connectionRefused …
const ttlExpired …
const commandNotSupported …
const addrTypeNotSupported …
var unrecognizedAddrType …
type AddressRewriter …
type AddrSpec …
func (a *AddrSpec) String() string { … }
func (a AddrSpec) Address() string { … }
type Request …
type conn …
func NewRequest(bufConn io.Reader) (*Request, error) { … }
func (s *Server) handleRequest(req *Request, conn conn) error { … }
func (s *Server) handleConnect(ctx context.Context, conn conn, req *Request) error { … }
func (s *Server) handleBind(ctx context.Context, conn conn, req *Request) error { … }
func (s *Server) handleAssociate(ctx context.Context, conn conn, req *Request) error { … }
func readAddrSpec(r io.Reader) (*AddrSpec, error) { … }
func sendReply(w io.Writer, resp uint8, addr *AddrSpec) error { … }
type closeWriter …
func proxy(dst io.Writer, src io.Reader, errCh chan error) { … }