|
@@ -58,13 +58,14 @@ func (h *UdpForWardingHandler) AddUdpForWarding(ctx *gin.Context) {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- req.UdpForwardingData.Id = id
|
|
|
+
|
|
|
go h.wafLogService.PublishIpWafLogTask(ctx,adminApi.WafLog{
|
|
|
Uid: req.Uid,
|
|
|
RequestIp: ctx.ClientIP(), // 复制 ClientIP
|
|
|
UserAgent: ctx.Request.UserAgent(), // 复制 UserAgent
|
|
|
Api: ctx.Request.URL.Path, // 复制 Path
|
|
|
HostId: req.HostId,
|
|
|
+ RuleId: id,
|
|
|
ExtraData: req,
|
|
|
})
|
|
|
v1.HandleSuccess(ctx, nil)
|
|
@@ -91,6 +92,7 @@ func (h *UdpForWardingHandler) EditUdpForWarding(ctx *gin.Context) {
|
|
|
UserAgent: ctx.Request.UserAgent(), // 复制 UserAgent
|
|
|
Api: ctx.Request.URL.Path, // 复制 Path
|
|
|
HostId: req.HostId,
|
|
|
+ RuleId: req.UdpForwardingData.Id,
|
|
|
ExtraData: req,
|
|
|
})
|
|
|
v1.HandleSuccess(ctx, nil)
|