1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-07 22:43:12 +02:00

- Added set::options::dont-resolve (=hostnames of incomming clients won't be resolved).

This is more usefull than the no nameserver + useip solution since with this no resolving
is done for incomming clients, but connecting to other servers (with hostnames) still works fine ;P.
This commit is contained in:
Bram Matthys
2003-02-22 22:34:40 +00:00
parent 4795a45150
commit 8fbb67818b
5 changed files with 15 additions and 0 deletions
+3
View File
@@ -1329,6 +1329,8 @@ void start_of_normal_client_handshake(aClient *acptr)
}
lin.flags = ASYNC_CLIENT;
lin.value.cptr = acptr;
if (DONT_RESOLVE)
goto skipdns;
Debug((DEBUG_DNS, "lookup %s", acptr->sockhost));
acptr->hostp = gethost_byaddr((char *)&acptr->ip, &lin);
@@ -1340,6 +1342,7 @@ void start_of_normal_client_handshake(aClient *acptr)
sendto_one(acptr, "%s", REPORT_FIN_DNSC);
}
nextdnscheck = 1;
skipdns:
start_auth(acptr);
}
+5
View File
@@ -4837,6 +4837,9 @@ int _conf_set(ConfigFile *conf, ConfigEntry *ce)
else if (!strcmp(cepp->ce_varname, "show-connect-info")) {
tempiConf.show_connect_info = 1;
}
else if (!strcmp(cepp->ce_varname, "dont-resolve")) {
tempiConf.dont_resolve = 1;
}
}
}
else if (!strcmp(cep->ce_varname, "hosts")) {
@@ -5121,6 +5124,8 @@ int _test_set(ConfigFile *conf, ConfigEntry *ce)
}
else if (!strcmp(cepp->ce_varname, "show-connect-info")) {
}
else if (!strcmp(cepp->ce_varname, "dont-resolve")) {
}
else
{
config_error("%s:%i: unknown option set::options::%s",