Rod Hynes 7 лет назад
Родитель
Сommit
15a0ab3fd6
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      psiphon/dialParameters.go

+ 2 - 0
psiphon/dialParameters.go

@@ -36,6 +36,7 @@ import (
 	"github.com/Psiphon-Labs/psiphon-tunnel-core/psiphon/common/parameters"
 	"github.com/Psiphon-Labs/psiphon-tunnel-core/psiphon/common/parameters"
 	"github.com/Psiphon-Labs/psiphon-tunnel-core/psiphon/common/prng"
 	"github.com/Psiphon-Labs/psiphon-tunnel-core/psiphon/common/prng"
 	"github.com/Psiphon-Labs/psiphon-tunnel-core/psiphon/common/protocol"
 	"github.com/Psiphon-Labs/psiphon-tunnel-core/psiphon/common/protocol"
+	utls "github.com/refraction-networking/utls"
 	regen "github.com/zach-klippenstein/goregen"
 	regen "github.com/zach-klippenstein/goregen"
 )
 )
 
 
@@ -311,6 +312,7 @@ func MakeDialParameters(
 		utlsClientHelloID := getUTLSClientHelloID(dialParams.TLSProfile)
 		utlsClientHelloID := getUTLSClientHelloID(dialParams.TLSProfile)
 
 
 		if protocol.TLSProfileIsRandomized(dialParams.TLSProfile) {
 		if protocol.TLSProfileIsRandomized(dialParams.TLSProfile) {
+			utlsClientHelloID.Seed = new(utls.PRNGSeed)
 			*utlsClientHelloID.Seed = [32]byte(*dialParams.RandomizedTLSProfileSeed)
 			*utlsClientHelloID.Seed = [32]byte(*dialParams.RandomizedTLSProfileSeed)
 		}
 		}