mirror of
https://github.com/whitechi73/OpenShamrock.git
synced 2024-08-14 13:12:17 +08:00
Shamrock
: 调整包拦截策略
This commit is contained in:
parent
e92b04ad0f
commit
2038d81ce8
@ -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
|
||||||
|
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user