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 (
!pb.has(1, 3)
|| !pb.has(1, 2)
// || !pb.has(1, 2, 2)
|| !pb.has(1, 2, 6)
) return
val msgType = pb[1, 2, 1].asInt

View File

@ -113,7 +113,8 @@ internal class HookWrapperCodec: IAction {
from.putWupBuffer(merge.toByteArray())
} else if (from.appId != MAGIC_APP_ID) {
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)
} else {
pushOnReceive(from)