1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-01 15:46:37 +02:00

We already set the IP in add_connection, no need to do that in check_init again.

Fix bug where "insecure link" message was shown despite localhost.
This commit is contained in:
Bram Matthys
2015-06-22 20:49:40 +02:00
parent d7e9d00e57
commit 5286b50c19
2 changed files with 25 additions and 48 deletions
+1 -1
View File
@@ -670,7 +670,7 @@ int m_server_synch(aClient *cptr, ConfigItem_link *aconf)
* Yeah.. there are still other cases when non-SSL links are fine (eg: local IP
* of the same machine), we won't bother with detecting that. -- Syzop
*/
if (strcmp(cptr->sockhost, "localhost"))
if (!IsLocal(cptr))
{
sendto_realops("\002WARNING:\002 This link is unencrypted (non-SSL). We highly recommend to use "
"SSL server linking. See https://www.unrealircd.org/docs/Linking_servers");