Przeglądaj źródła

fix a bug in vmess encoding

v2ray 9 lat temu
rodzic
commit
443e9d4725
1 zmienionych plików z 4 dodań i 4 usunięć
  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
 }