Procházet zdrojové kódy

fix a bug in vmess encoding

v2ray před 9 roky
rodič
revize
443e9d4725
1 změnil soubory, kde provedl 4 přidání a 4 odebrání
  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
 }