优化redirect, init不需要重定向

This commit is contained in:
M09Ic 2023-01-11 12:03:40 +08:00
parent 009ca464bd
commit 68bef7bc3c

View File

@ -351,7 +351,7 @@ func (pool *Pool) Invoke(v interface{}) {
}
// 手动处理重定向
if bl.IsValid && unit.source != CheckSource && bl.RedirectURL != "" {
if bl.IsValid && unit.source > 3 && bl.RedirectURL != "" {
pool.wg.Add(1)
pool.doRedirect(bl, unit.depth)
}