mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
-s switch support for dnspr
dnspr -s switch to act as a simple DNS proxy and do not use 3proxy's resolver and DNS cache.
This commit is contained in:
1 parent
efdbaee29f
commit
a4cb2f36b5
3 files changed
+4
-3
No files matched your search
@@ -721,6 +721,7 @@ static int h_proxy(int argc, unsigned char ** argv){
|
||||
childdef.port = 53;
|
||||
childdef.isudp = 1;
|
||||
childdef.service = S_DNSPR;
|
||||
childdef.helpmessage = " -s - simple DNS forwarding - do not use 3proxy resolver / name cache\n";
|
||||
if(!resolvfunc || (resolvfunc == myresolver && !dns_table.hashsize) || resolvfunc == fakeresolver){
|
||||
fprintf(stderr, "[line %d] Warning: no nserver/nscache configured, dnspr will not work as expected\n", linenum);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user