From 3f65105637f74ee908c33c83c9c45faad0f989ce Mon Sep 17 00:00:00 2001 From: Vladimir Dubrovin <3proxy@3proxy.ru> Date: Thu, 26 Nov 2026 15:50:12 +0300 Subject: [PATCH] dnspr: a name server's answer with no records relayed as it is (#1292) --- src/dnspr.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/dnspr.c b/src/dnspr.c index 0b54435..080d88a 100644 --- a/src/dnspr.c +++ b/src/dnspr.c @@ -224,12 +224,12 @@ void * dnsprchild(struct clientparam* param) { } buf[0] = cid[0]; buf[1] = cid[1]; - if(buf[6] || buf[7]){ - if(socksendto(param, param->clisock, (struct sockaddr *)¶m->sincr, buf, len, conf.timeouts[SINGLEBYTE_L]*1000) != len){ - RETURN(822); - } - RETURN(0); + /* the answer goes to the client as it is, its code with no records + among them: the name not found is the server's word, not ours */ + if(socksendto(param, param->clisock, (struct sockaddr *)¶m->sincr, buf, len, conf.timeouts[SINGLEBYTE_L]*1000) != len){ + RETURN(822); } + RETURN(0); } if(!ip) {