소스 검색

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
 }