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

websocket module will now only disable show-connect-info on the ports

that have listen::options::websocket. It will no longer disable it
on all ports.
This commit is contained in:
Bram Matthys
2019-10-06 07:37:55 +02:00
parent ba7ff01e0f
commit d2a93c3a03
5 changed files with 26 additions and 20 deletions
+3 -3
View File
@@ -53,7 +53,7 @@ static void ident_lookup_failed(Client *client)
}
ClearIdentLookupSent(client);
ClearIdentLookup(client);
if (SHOWCONNECTINFO && !client->serv && !IsServersOnlyListener(client->local->listener))
if (should_show_connect_info(client))
sendto_one(client, NULL, "%s", REPORT_FAIL_ID);
if (!IsDNSLookup(client))
finish_auth(client);
@@ -90,7 +90,7 @@ static int ident_lookup_connect(Client *client)
return 0;
}
if (SHOWCONNECTINFO && !client->serv && !IsServersOnlyListener(client->local->listener))
if (should_show_connect_info(client))
sendto_one(client, NULL, "%s", REPORT_DO_ID);
set_sock_opts(client->local->authfd, client, IsIPV6(client));
@@ -165,7 +165,7 @@ static void ident_lookup_receive(int fd, int revents, void *userdata)
if (!IsDNSLookup(client))
finish_auth(client);
if (SHOWCONNECTINFO && !client->serv && !IsServersOnlyListener(client->local->listener))
if (should_show_connect_info(client))
sendto_one(client, NULL, "%s", REPORT_FIN_ID);
if (len > 0)
-7
View File
@@ -95,13 +95,6 @@ MOD_INIT()
MOD_LOAD()
{
if (SHOWCONNECTINFO)
{
config_warn("I'm disabling set::options::show-connect-info for you "
"as this setting is incompatible with the websocket module.");
SHOWCONNECTINFO = 0;
}
return MOD_SUCCESS;
}