修复获取目标地址IP失败导致程序崩溃的问题

This commit is contained in:
Liujian
2023-11-07 17:50:15 +08:00
parent b47a447b83
commit 00643c3046
7 changed files with 45 additions and 24 deletions

View File

@@ -104,7 +104,9 @@ func (e *executor) DoHttpFilter(ctx http_service.IHttpContext, next eocontext.IC
ctx.SetLabel("file_name", h.Filename)
ctx.SetLabel("file_suffix", suffix)
ctx.WithValue("file_size", h.Size)
if h.Size > e.largeWarn {
ctx.SetLabel("file_size_warn", e.largeWarnStr)
}
break
}
}