Ian Goldberg 7 年之前
父节点
当前提交
1d305de885
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      client/socks5proxy.c

+ 1 - 1
client/socks5proxy.c

@@ -113,7 +113,7 @@ int main(void){
 		return 1;
 	}
         uint16_t len = htons(strlen(encoded_bytes));
-	int32_t bytes_sent = send(ous_in, (unsigned char *) &len), sizeof(uint16_t), 0);
+	int32_t bytes_sent = send(ous_in, (unsigned char *) &len, sizeof(uint16_t), 0);
 	bytes_sent += send(ous_in, encoded_bytes, ntohs(len), 0);
 	printf("Wrote %d bytes to OUS_in: %x\n %s\n", bytes_sent, len, encoded_bytes);