From 6a9235223ea5aaf2103156f4b8edcd8f97d8abb6 Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Wed, 9 Nov 2016 09:44:10 +0100 Subject: [PATCH] Set correct class for DNS TXT queries --- simgear/io/DNSClient.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simgear/io/DNSClient.cxx b/simgear/io/DNSClient.cxx index 9c129eae..13f44b41 100644 --- a/simgear/io/DNSClient.cxx +++ b/simgear/io/DNSClient.cxx @@ -130,7 +130,7 @@ static void dnscbTXT(struct dns_ctx *ctx, struct dns_rr_txt *result, void *data) void TXTRequest::submit() { // protocol and service an already encoded in DN so pass in NULL for both - if (!dns_submit_txt(NULL, getDn().c_str(), 0, 0, dnscbTXT, this )) { + if (!dns_submit_txt(NULL, getDn().c_str(), DNS_C_IN, 0, dnscbTXT, this )) { SG_LOG(SG_IO, SG_ALERT, "Can't submit dns request for " << getDn()); return; }