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(
|
||||
title = "拦截QQ无用发包",
|
||||
desc = "测试阶段,可能导致网络异常。",
|
||||
title = "拦截QQ无用收包",
|
||||
desc = "测试阶段,可能导致网络异常或掉线。",
|
||||
descColor = it,
|
||||
isSwitch = ShamrockConfig.isInjectPacket(ctx)
|
||||
) {
|
||||
|
@ -113,7 +113,7 @@ 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 = "ShamrockInjectedCmd_${from.serviceCmd}"
|
||||
from.putWupBuffer(EMPTY_BYTE_ARRAY)
|
||||
} else {
|
||||
pushOnReceive(from)
|
||||
|
Loading…
x
Reference in New Issue
Block a user