Jelajahi Sumber

Fix fetchTactics invalid MEEK config

Amir Khan 1 tahun lalu
induk
melakukan
82be02e42a
1 mengubah file dengan 4 tambahan dan 2 penghapusan
  1. 4 2
      psiphon/tactics.go

+ 4 - 2
psiphon/tactics.go

@@ -23,12 +23,14 @@ import (
 	"context"
 	"time"
 
+	tls "github.com/Psiphon-Labs/psiphon-tls"
 	"github.com/Psiphon-Labs/psiphon-tunnel-core/psiphon/common"
 	"github.com/Psiphon-Labs/psiphon-tunnel-core/psiphon/common/errors"
 	"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/protocol"
 	"github.com/Psiphon-Labs/psiphon-tunnel-core/psiphon/common/tactics"
+	utls "github.com/Psiphon-Labs/utls"
 )
 
 // GetTactics attempts to apply tactics, for the current network, to the given
@@ -217,8 +219,8 @@ func fetchTactics(
 	dialParams, err := MakeDialParameters(
 		config,
 		nil,
-		nil,
-		nil,
+		tls.NewLRUClientSessionCache(0),
+		utls.NewLRUClientSessionCache(0),
 		nil,
 		canReplay,
 		selectProtocol,