Skip to content

Commit

Permalink
Remove query type from SendHandshakeData event matcher (#2574)
Browse files Browse the repository at this point in the history
Also change response to proper query type
  • Loading branch information
jacobkeeler authored Aug 27, 2021
1 parent f954b0f commit 4c9ae5a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions user_modules/sequences/security.lua
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ local function registerExpectServiceEventFunc(pMobSession)
return data.frameType ~= constants.FRAME_TYPE.CONTROL_FRAME
and data.serviceType == constants.SERVICE_TYPE.CONTROL
and data.sessionId == session.sessionId.get()
and data.rpcType == constants.BINARY_RPC_TYPE.NOTIFICATION
and data.rpcFunctionId == constants.BINARY_RPC_FUNCTION_ID.HANDSHAKE
end
session:ExpectEvent(handshakeEvent, "Handshake internal")
Expand All @@ -115,7 +114,7 @@ local function registerExpectServiceEventFunc(pMobSession)
frameInfo = 0,
serviceType = constants.SERVICE_TYPE.CONTROL,
encryption = false,
rpcType = constants.BINARY_RPC_TYPE.NOTIFICATION,
rpcType = constants.BINARY_RPC_TYPE.RESPONSE,
rpcFunctionId = constants.BINARY_RPC_FUNCTION_ID.HANDSHAKE,
rpcCorrelationId = data.rpcCorrelationId,
binaryData = dataToSend
Expand Down

0 comments on commit 4c9ae5a

Please sign in to comment.