Move DNS and auth lookups after starting IAuth.
[ircu2.10.12-pk.git] / ircd / s_auth.c
index 2a00dd1a781c46a4e180fd54da9de05de54266ed..ff245d6d65423bcb3f30e82767a803294d1b8dc1 100644 (file)
@@ -1020,12 +1020,6 @@ void start_auth(struct Client* client)
   }
   auth->port = remote.port;
 
-  /* Try to start DNS lookup. */
-  start_dns_query(auth);
-
-  /* Try to start ident lookup. */
-  start_auth_query(auth);
-
   /* Set required client inputs for users. */
   if (IsUserPort(client)) {
     cli_user(client) = make_user(client);
@@ -1037,6 +1031,12 @@ void start_auth(struct Client* client)
     start_iauth_query(auth);
   }
 
+  /* Try to start DNS lookup. */
+  start_dns_query(auth);
+
+  /* Try to start ident lookup. */
+  start_auth_query(auth);
+
   /* Add client to GlobalClientList. */
   add_client_to_list(client);