code: func writeReply(conn net.Conn) error {
  	// Write success reply, similar to OpenSSH only success is written.
  	// https://github.com/openssh/openssh-portable/blob/5d14019/channels.c#L1442-L1452
  	message := []byte{
  		socks5Version,
  		socks5Succeeded,
  		socks5Reserved,
  		socks5AddressTypeIPv4,
  	}
  	n, err := conn.Write(message)
  	if err != nil {
  		return trace.Wrap(err)
  	}
  	if n != len(message) {
  		return trace.BadParameter("wrote: %v wanted to write: %v", n, len(message))
  	}
  
  	// Reply also requires BND.ADDR and BDN.PORT even though they are ignored
  	// because Teleport only supports CONNECT.
  	message = []byte{0, 0, 0, 0, 0, 0}
  	n, err = conn.Write(message)
  	if err != nil {
  		return trace.Wrap(err)
  	}
  	if n != len(message) {
  		return trace.BadParameter("wrote: %v wanted to write: %v", n, len(message))
  	}
  
  	return nil
  }
docs: // Write the response to the client.