Shamrock: 调整包拦截策略

This commit is contained in:
whitechi73 2024-01-20 03:02:55 +08:00
parent e92b04ad0f
commit 2038d81ce8
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,6 @@ internal object PrimitiveListener {
if ( if (
!pb.has(1, 3) !pb.has(1, 3)
|| !pb.has(1, 2) || !pb.has(1, 2)
// || !pb.has(1, 2, 2)
|| !pb.has(1, 2, 6) || !pb.has(1, 2, 6)
) return ) return
val msgType = pb[1, 2, 1].asInt val msgType = pb[1, 2, 1].asInt

View File

@ -113,7 +113,8 @@ internal class HookWrapperCodec: IAction {
from.putWupBuffer(merge.toByteArray()) from.putWupBuffer(merge.toByteArray())
} else if (from.appId != MAGIC_APP_ID) { } else if (from.appId != MAGIC_APP_ID) {
if (from.serviceCmd in IgnoredCmd && ShamrockConfig.isInjectPacket()) { if (from.serviceCmd in IgnoredCmd && ShamrockConfig.isInjectPacket()) {
from.serviceCmd = "ShamrockInjectedCmd_${from.serviceCmd}" //from.serviceCmd = "ShamrockInjectedCmd_${from.serviceCmd}"
from.setBusinessFail(1)
from.putWupBuffer(EMPTY_BYTE_ARRAY) from.putWupBuffer(EMPTY_BYTE_ARRAY)
} else { } else {
pushOnReceive(from) pushOnReceive(from)