浏览代码

feat(waf): 添加海外 IP封禁配置

- 在 WAF 配置中增加了 IsBanOverseas 字段,用于控制是否封禁海外 IP
- 此修改为 WAF 功能增加了对海外 IP 的访问控制能力
fusu 1 周之前
父节点
当前提交
c0a29a8b08
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      internal/service/api/waf/gatewayip.go

+ 1 - 0
internal/service/api/waf/gatewayip.go

@@ -56,6 +56,7 @@ func (s *gatewayipService) AddIpWhereHostIdNull(ctx context.Context, hostId int6
 		NodeArea:            config.NodeArea,
 		ConfigMaxProtection: config.ConfigMaxProtection,
 		IsBanUdp:            config.IsBanUdp,
+		IsBanOverseas:       config.IsBanOverseas,
 	});
 	 if err != nil {
 		return  err