mirror of
https://github.com/chainreactors/spray.git
synced 2025-09-15 19:50:18 +00:00
优化redirect, init不需要重定向
This commit is contained in:
parent
009ca464bd
commit
68bef7bc3c
@ -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.wg.Add(1)
|
||||||
pool.doRedirect(bl, unit.depth)
|
pool.doRedirect(bl, unit.depth)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user