Skip to content

Commit

Permalink
increase retry count to 32 from 24
Browse files Browse the repository at this point in the history
  • Loading branch information
SirCremefresh committed Jun 22, 2020
1 parent 63e01b4 commit dfd2062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ func getToplevelDomain(domain string) (string, error) {
}

func lookupIP(domain string) (string, error) {
for retry := 0; retry < 24; retry++ {
for retry := 0; retry < 32; retry++ {
lookedUpIPs, err := net.LookupIP(domain)
if err == nil && len(lookedUpIPs) > 0 {
return lookedUpIPs[0].String(), nil
Expand Down

0 comments on commit dfd2062

Please sign in to comment.