Skip to content

Commit

Permalink
note
Browse files Browse the repository at this point in the history
  • Loading branch information
Sansui233 committed Mar 18, 2021
1 parent 9a1a662 commit 9e90814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/app/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ var location, _ = time.LoadLocation("PRC")
// Get all usable proxies from proxypool server and set app vars
func InitApp() error{
// Get proxies from server
// TODO 可能是编译的问题,加了flag的版本节点会更少
proxies, err := getAllProxies()
if err != nil {
log.Println("Get proxies error: ", err)
Expand Down Expand Up @@ -88,7 +89,6 @@ func getAllProxies() (proxy.ProxyList, error){
if len(pjson) < 2{
return nil, errors.New("No proxy on remote server")
}

var proxylist proxy.ProxyList
for i, pstr := range pjson {
if i == 0 || len(pstr)<2{
Expand Down

0 comments on commit 9e90814

Please sign in to comment.