From 5504877d8850f9102132dd396e3400cd3639b42f Mon Sep 17 00:00:00 2001 From: V2Ray Date: Mon, 7 Sep 2015 01:01:32 +0200 Subject: [PATCH] Update VMess protocol, reduce header size --- spec/vmess.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/vmess.md b/spec/vmess.md index af629ba6..d90b7c8b 100644 --- a/spec/vmess.md +++ b/spec/vmess.md @@ -8,7 +8,7 @@ 认证部分: * 16 字节:md5(用户 VID + 'ASK') 指令部分: -* 2 字节:随机填充长度 M (M <= 32) +* 1 字节:随机填充长度 M (M <= 32) * M 字节:随机填充内容 * 1 字节:保留,总是 0x00 * 16 字节:请求数据 IV @@ -25,7 +25,7 @@ * 0x03:IPv6 * 目标地址: * 4 字节:IPv4 - * 2 字节长度 + 域名 + * 1 字节长度 + 域名 * 16 字节:IPv6 数据部分 * N 字节:请求数据