Skip to content

Commit

Permalink
fix: 🐛fix proxy bug
Browse files Browse the repository at this point in the history
  • Loading branch information
aurorax-neo authored Apr 23, 2024
2 parents 888746f + 40788f5 commit f61cd21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ProxyPool/ProxyPool.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func NewProxyPool(proxies []*Proxy) *ProxyPool {

func (PP *ProxyPool) GetProxy() *Proxy {
// 如果没有代理则返回空代理
if len(PP.Proxies) == 0 {
if len(PP.Proxies) == 1 {
return PP.Proxies[0]
}
// 获取代理
Expand Down

0 comments on commit f61cd21

Please sign in to comment.