Skip to content

Commit

Permalink
OSSH prefix overrides OSSH seed transforms
Browse files Browse the repository at this point in the history
  • Loading branch information
adotkhan committed Jun 12, 2023
1 parent 2cda1d9 commit 0f91145
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions psiphon/common/obfuscator/obfuscatedSshConn.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,13 @@ func NewObfuscatedSSHConn(
var readDeobfuscate, writeObfuscate func([]byte)
var writeState ObfuscatedSSHWriteState

// OSSHPrefix supersedes OSSHObfuscatorSeedTransform.
// This ensures both tactics are not used simultaneously,
// until OSSHObfuscatorSeedTransform is removed.
if clientPrefixSpec != nil {
obfuscatorSeedTransformerParameters = nil
}

conn = WrapConnWithSkipReader(conn)

readState := ObfuscatedSSHReadState(OBFUSCATION_READ_STATE_IDENTIFICATION_LINES)
Expand Down

0 comments on commit 0f91145

Please sign in to comment.