fcambus / rrda

REST API allowing to perform DNS queries over HTTP

Home Page:https://www.statdns.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

line 130 incorrect if statement balance

lucyllewy opened this issue · comments

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

Indeed, IsDomainName function in the DNS library has a new prototype, updating the code to match this.

Thanks for reporting this issue!