2 Commits

Author SHA1 Message Date
48b720bdd7 Merge remote-tracking branch 'origin/master' 2024-01-20 03:03:07 +08:00
2038d81ce8 Shamrock: 调整包拦截策略 2024-01-20 03:02:55 +08:00
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)