Skip to content

客户端包守卫

AXS 的安全由 ClientPacketGuard 负责,防止伪造 / 高频回包 DoS。

ClientPacketGuard

每条客户端→服务端的包被抽象成 (player, module, action) 三元组。

yaml
client-packet-guard:
  enabled: true
  cleanup-interval-ticks: 200
  defaults:
    window-ms: 1000
    max-hits: 20
    mode: "silent"
字段说明
window-ms时间窗(毫秒)
max-hits时间窗内最多允许的回包数
modesilent 静默丢弃 / notify 丢弃并提示 / punish 执行命令

基于 GPL-3.0 许可发布