Override framing with pushed if available
This commit is contained in:
parent
0304c4a5eb
commit
e5918d1b05
|
@ -1031,6 +1031,10 @@ public class SessionProxy {
|
||||||
log.debug("Set up encryption")
|
log.debug("Set up encryption")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let pushedFraming = pushReply.compressionFraming
|
||||||
|
if let negFraming = pushedFraming {
|
||||||
|
log.debug("Negotiated compression framing: \(negFraming.rawValue)")
|
||||||
|
}
|
||||||
let pushedCipher = pushReply.cipher
|
let pushedCipher = pushReply.cipher
|
||||||
if let negCipher = pushedCipher {
|
if let negCipher = pushedCipher {
|
||||||
log.debug("Negotiated cipher: \(negCipher.rawValue)")
|
log.debug("Negotiated cipher: \(negCipher.rawValue)")
|
||||||
|
@ -1054,7 +1058,7 @@ public class SessionProxy {
|
||||||
encrypter: bridge.encrypter(),
|
encrypter: bridge.encrypter(),
|
||||||
decrypter: bridge.decrypter(),
|
decrypter: bridge.decrypter(),
|
||||||
peerId: pushReply.peerId ?? PacketPeerIdDisabled,
|
peerId: pushReply.peerId ?? PacketPeerIdDisabled,
|
||||||
compressionFraming: configuration.compressionFraming.native,
|
compressionFraming: (pushedFraming ?? configuration.compressionFraming).native,
|
||||||
maxPackets: link?.packetBufferSize ?? 200,
|
maxPackets: link?.packetBufferSize ?? 200,
|
||||||
usesReplayProtection: CoreConfiguration.usesReplayProtection
|
usesReplayProtection: CoreConfiguration.usesReplayProtection
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue