|
@@ -32,6 +32,7 @@ import (
|
|
|
"github.com/Psiphon-Labs/psiphon-tunnel-core/psiphon/common"
|
|
"github.com/Psiphon-Labs/psiphon-tunnel-core/psiphon/common"
|
|
|
"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"
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
const (
|
|
@@ -74,6 +75,10 @@ func newConfig(
|
|
|
tunnelProtocol string,
|
|
tunnelProtocol string,
|
|
|
seed *prng.Seed) *Config {
|
|
seed *prng.Seed) *Config {
|
|
|
|
|
|
|
|
|
|
+ if !protocol.TunnelProtocolIsCompatibleWithFragmentor(tunnelProtocol) {
|
|
|
|
|
+ return nil
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
probability := parameters.FragmentorProbability
|
|
probability := parameters.FragmentorProbability
|
|
|
limitProtocols := parameters.FragmentorLimitProtocols
|
|
limitProtocols := parameters.FragmentorLimitProtocols
|
|
|
minTotalBytes := parameters.FragmentorMinTotalBytes
|
|
minTotalBytes := parameters.FragmentorMinTotalBytes
|