Skip to content

Commit

Permalink
Fix minor bug on parsing process
Browse files Browse the repository at this point in the history
  • Loading branch information
tamboto2000 committed Oct 13, 2022
1 parent 2d81245 commit d86cca4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions proxies.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,12 @@ func parse(raw []byte) ([]Proxy, error) {
Anonymity: node.Child[4].Child[0].Data,
}

if node.Child[5].Child[0].Data == "yes" {
item.Google = true
if node.Child[5].Child != nil {
if len(node.Child[5].Child) >= 1 {
if node.Child[5].Child[0].Data == "yes" {
item.Google = true
}
}
} else {
item.Google = false
}
Expand Down

0 comments on commit d86cca4

Please sign in to comment.