Skip to content

Commit

Permalink
Merge pull request #767 from RANKTW/main
Browse files Browse the repository at this point in the history
Fix incorrect Cloudflare Error 1015 detect
  • Loading branch information
V4NSH4J authored Jul 25, 2022
2 parents 32a43de + b33922f commit 879c2e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion instance/extra.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ func (in *Instance) Invite(Code string) error {
j++
continue
}
if strings.Contains(string(body), "1015") {
if resp.StatusCode == 429 && strings.Contains(string(body), "1015") {
utilities.LogErr("Cloudflare Error 1015 - Your IP is being Rate Limited. Use proxies. If you already are, make sure proxy_from_file is enabled in your config")
break
}
Expand Down

0 comments on commit 879c2e2

Please sign in to comment.