handleAssociate is used to handle a connect command TODO: Support associate command
(conn io.ReadWriter, req *Request)
| 125 | // handleAssociate is used to handle a connect command |
| 126 | // TODO: Support associate command |
| 127 | func (h *StandardRequestHandler) handleAssociate(conn io.ReadWriter, req *Request) error { |
| 128 | if err := sendReply(conn, commandNotSupported, nil); err != nil { |
| 129 | return fmt.Errorf("Failed to send reply: %v", err) |
| 130 | } |
| 131 | return nil |
| 132 | } |
| 133 | |
| 134 | func StreamHandler(tunnelConn io.ReadWriter, originConn net.Conn, log *zerolog.Logger) { |
| 135 | dialer := NewConnDialer(originConn) |