message: Fix socks5 handshake.
diff: @@ -283,7 +283,7 @@ bool Socket::socks5_handshake()
  buf += ctx->l_target_host;
  *(uint16_t *) buf = htons(ctx->target_port);
  - if (send(ctx->buf, buf_len) != 0)
  + if (send(ctx->buf, buf_len) != buf_len)
  {
  return false;
  }
  @@ -296,7 +296,7 @@ bool Socket::socks5_handshake()
  buf += 4;
  *(uint16_t *) buf = htons(ctx->target_port);
  - if (send(ctx->buf, buf_len) < 0)
  + if (send(ctx->buf, buf_len) != buf_len)
  {
  return false;
  }
  