Commit 54f4650b authored by Jelte Jansen's avatar Jelte Jansen
Browse files

[master] fixed the IPPROTO argument of one of the fetches

it used IPPROTO_IDP instead of IPPROTO_UDP, somehow this snuck past my review, and since IPPROTO_IDP exists, it reverted to TCP (which isn't implemented yet). The future-proof fix is to either not allow this to be passed (use a boolen use_udp or something), or raise an error on an unknown protocol.

But for now this quick fix should at least get it working again. Reviewed on jabber by stephen.
parent bb708b65
......@@ -173,7 +173,7 @@ private:
int serverIndex = rand() % zs;
dlog("Sending query to zone server (" + question_.toText() +
") to " + zone_servers_.at(serverIndex).first);
IOFetch query(IPPROTO_IDP, io_, question_,
IOFetch query(IPPROTO_UDP, io_, question_,
zone_servers_.at(serverIndex).first,
zone_servers_.at(serverIndex).second, buffer_, this,
query_timeout_);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment