fix: ParseRawCURL 报错后无法定位

This commit is contained in:
eson 2018-12-21 18:08:52 +08:00
parent c3de0210c6
commit 22478bd818

View File

@ -86,10 +86,7 @@ func splitTasks(conf *Config) []ITask {
var tasks []ITask
proxies := (*clinked.CircularLinked)(conf.Proxies)
for _, scurl := range conf.Curls {
curl, err := curl2info.ParseRawCURL(scurl)
if err != nil {
panic(err)
}
curl := curl2info.ParseRawCURL(scurl)
if curl.ITask == "" {
curl.ITask = conf.ITask
@ -112,10 +109,7 @@ func splitTasks(conf *Config) []ITask {
for _, cnode := range proxies.GetLoopValues() {
proxy := cnode.GetValue().(string)
ncurl, err := curl2info.ParseRawCURL(scurl)
if err != nil {
panic(err)
}
ncurl := curl2info.ParseRawCURL(scurl)
if curl.ITask == "" {
curl.ITask = conf.ITask