fcambus / rrda

REST API allowing to perform DNS queries over HTTP
https://www.statdns.com
BSD 2-Clause "Simplified" License
221 stars 56 forks source link

line 130 incorrect if statement balance #1

Closed lucyllewy closed 10 years ago

lucyllewy commented 10 years ago

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

fcambus commented 10 years ago

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

Thanks for reporting this issue!