mirror of
https://github.com/whitechi73/OpenShamrock.git
synced 2024-08-14 13:12:17 +08:00
Shamrock
: 使拦截的收包cmd更加清晰
This commit is contained in:
parent
ca62b33275
commit
d5378d8acb
@ -110,8 +110,8 @@ fun LabFragment() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Function(
|
Function(
|
||||||
title = "拦截QQ无用发包",
|
title = "拦截QQ无用收包",
|
||||||
desc = "测试阶段,可能导致网络异常。",
|
desc = "测试阶段,可能导致网络异常或掉线。",
|
||||||
descColor = it,
|
descColor = it,
|
||||||
isSwitch = ShamrockConfig.isInjectPacket(ctx)
|
isSwitch = ShamrockConfig.isInjectPacket(ctx)
|
||||||
) {
|
) {
|
||||||
|
@ -113,7 +113,7 @@ 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 = "ShamrockInjectedCmd_${from.serviceCmd}"
|
||||||
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