diff options
Diffstat (limited to 'modules/core')
-rw-r--r-- | modules/core/Makefile.in | 2 | ||||
-rw-r--r-- | modules/core/m_server.c | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/modules/core/Makefile.in b/modules/core/Makefile.in index 749a81f..5233c93 100644 --- a/modules/core/Makefile.in +++ b/modules/core/Makefile.in @@ -1,4 +1,4 @@ -# Makefile.in generated by automake 1.13.3 from Makefile.am. +# Makefile.in generated by automake 1.13.4 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. diff --git a/modules/core/m_server.c b/modules/core/m_server.c index f869a37..8ede844 100644 --- a/modules/core/m_server.c +++ b/modules/core/m_server.c @@ -161,6 +161,17 @@ mr_server(struct Client *client_p, struct Client *source_p, exit_client(client_p, client_p, "Invalid host."); return; + case -4: + sendto_realops_flags(UMODE_ALL, L_ADMIN, SEND_NOTICE, + "Unauthorized server connection attempt from %s: Invalid certificate fingerprint " + "for server %s", get_client_name(client_p, HIDE_IP), name); + + sendto_realops_flags(UMODE_ALL, L_OPER, SEND_NOTICE, + "Unauthorized server connection attempt from %s: Invalid certificate fingerprint " + "for server %s", get_client_name(client_p, MASK_IP), name); + + exit_client(client_p, client_p, "Invalid certificate fingerprint."); + return; /* NOT REACHED */ break; } |