rrda

REST API allowing to perform DNS queries over HTTP
Log | Files | Refs | README | LICENSE

commit 3e94618af562e769f3c56fcd70df6d8646ff5af3
parent b7690cba8ed25c4c2c57ed58120c7c300e2329a7
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Sat,  7 Dec 2013 11:38:51 +0100

Update to match Go DNS "IsDomainName" new prototype (Closes #1)

Diffstat:
Mrrda.go | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rrda.go b/rrda.go @@ -4,7 +4,7 @@ /* http://www.statdns.com */ /* */ /* Created: 2012/03/11 */ -/* Last Updated: 2013/10/09 */ +/* Last Updated: 2013/12/07 */ /* */ /* RRDA is released under the BSD 3-Clause license. */ /* See LICENSE file for details. */ @@ -127,7 +127,7 @@ func query(w http.ResponseWriter, r *http.Request) { querytype := r.URL.Query().Get(":querytype") if domain, err := idna.ToASCII(domain); err == nil { // Valid domain name (ASCII or IDN) - if _, _, isDomain := dns.IsDomainName(domain); isDomain { // Well-formed domain name + if _, isDomain := dns.IsDomainName(domain); isDomain { // Well-formed domain name if querytype, ok := dns.StringToType[strings.ToUpper(querytype)]; ok { // Valid DNS query type resolve(w, server, domain, querytype) } else {