浏览代码

fix a bug in vmess encoding

v2ray 9 年之前
父节点
当前提交
443e9d4725
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      proxy/vmess/encoding/client.go

+ 4 - 4
proxy/vmess/encoding/client.go

@@ -15,10 +15,10 @@ import (
 
 func hashTimestamp(t protocol.Timestamp) []byte {
 	bytes := make([]byte, 0, 32)
-	t.Bytes(bytes)
-	t.Bytes(bytes)
-	t.Bytes(bytes)
-	t.Bytes(bytes)
+	bytes = t.Bytes(bytes)
+	bytes = t.Bytes(bytes)
+	bytes = t.Bytes(bytes)
+	bytes = t.Bytes(bytes)
 	return bytes
 }