fix: ParseRawCURL 报错后无法定位
This commit is contained in:
parent
c3de0210c6
commit
22478bd818
10
person.go
10
person.go
|
@ -86,10 +86,7 @@ func splitTasks(conf *Config) []ITask {
|
||||||
var tasks []ITask
|
var tasks []ITask
|
||||||
proxies := (*clinked.CircularLinked)(conf.Proxies)
|
proxies := (*clinked.CircularLinked)(conf.Proxies)
|
||||||
for _, scurl := range conf.Curls {
|
for _, scurl := range conf.Curls {
|
||||||
curl, err := curl2info.ParseRawCURL(scurl)
|
curl := curl2info.ParseRawCURL(scurl)
|
||||||
if err != nil {
|
|
||||||
panic(err)
|
|
||||||
}
|
|
||||||
|
|
||||||
if curl.ITask == "" {
|
if curl.ITask == "" {
|
||||||
curl.ITask = conf.ITask
|
curl.ITask = conf.ITask
|
||||||
|
@ -112,10 +109,7 @@ func splitTasks(conf *Config) []ITask {
|
||||||
for _, cnode := range proxies.GetLoopValues() {
|
for _, cnode := range proxies.GetLoopValues() {
|
||||||
proxy := cnode.GetValue().(string)
|
proxy := cnode.GetValue().(string)
|
||||||
|
|
||||||
ncurl, err := curl2info.ParseRawCURL(scurl)
|
ncurl := curl2info.ParseRawCURL(scurl)
|
||||||
if err != nil {
|
|
||||||
panic(err)
|
|
||||||
}
|
|
||||||
|
|
||||||
if curl.ITask == "" {
|
if curl.ITask == "" {
|
||||||
curl.ITask = conf.ITask
|
curl.ITask = conf.ITask
|
||||||
|
|
Loading…
Reference in New Issue
Block a user