Skip to content

Commit

Permalink
UpdateSubscribeData when parseSubscribeByUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
iotames committed Oct 31, 2023
1 parent a5166a1 commit 075417d
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions v2raypool.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,19 @@ func (p *ProxyPool) InitSubscribeData() *ProxyPool {
}
} else {
if p.subscribeUrl != "" {
dt, _, err = parseSubscribeByUrl(p.subscribeUrl, "")
var rawdt string
dt, rawdt, err = parseSubscribeByUrl(p.subscribeUrl, "")
if err != nil {
panic(err)
fmt.Printf("-----InitSubscribeData-parseSubscribeByUrl-err(%v)\n", err)
dt, rawdt, err = parseSubscribeByUrl(p.subscribeUrl, fmt.Sprintf("http://127.0.0.1:%d", p.localPortStart-1))
if err != nil {
panic(err)
}
}

fmt.Printf("------InitSubscribeData----rawdt(%s)----\n", rawdt)
if rawdt != "" {
conf.GetConf().UpdateSubscribeData(rawdt)
}
}
}
Expand Down

0 comments on commit 075417d

Please sign in to comment.