line 130 incorrect if statement balance
lucyllewy opened this issue · comments
Lucy Llewellyn commented
the code cannot be run or compiled by go as it stands because line 130 includes the "_" parameter in the if statement twice thereby causing the compilation process to complain that there are an incorrect number of parameters (3 = 2). removing the duplicated _ fixes the code in my setup and I can now successfully query dns servers.
My line 130 now reads:
if _, isDomain := dns.IsDomainName(domain); isDomain { // Well-formed domain name
Frederic Cambus commented
Indeed, IsDomainName
function in the DNS library has a new prototype, updating the code to match this.
Thanks for reporting this issue!