hakluke / hakrevdns

Small, fast tool for performing reverse DNS lookups en masse.
MIT License
1.42k stars 156 forks source link

Defer wg.Done() and continue instead of return #11

Closed pczajkowski closed 4 years ago

pczajkowski commented 4 years ago

With wg.Done() at the bottom of doWork function and loop returning on error the program would freeze if there was an error. So I've added defer to wg.Done() and moved it to the top. I also think it would be better to continue in the loop instead of return on error, this way program will keep checking other IPs from the list.

hakluke commented 4 years ago

Agreed! Thank you :)