diff --git a/ircd/newconf.c b/ircd/newconf.c index 6ec62dc8..72732d26 100644 --- a/ircd/newconf.c +++ b/ircd/newconf.c @@ -862,6 +862,11 @@ conf_set_listen_port_both(void *data, int ssl) } if(listener_address == NULL) { + if (!ssl) + { + conf_report_error("listener '%s/%d': support for plaintext listeners is being deprecated and may be removed in a future release. " + "It is suggested that users be migrated to SSL/TLS connections.", listener_address, args->v.number); + } add_listener(args->v.number, listener_address, AF_INET, ssl, ssl || yy_defer_accept); #ifdef RB_IPV6 add_listener(args->v.number, listener_address, AF_INET6, ssl, ssl || yy_defer_accept); @@ -877,8 +882,13 @@ conf_set_listen_port_both(void *data, int ssl) #endif family = AF_INET; - add_listener(args->v.number, listener_address, family, ssl, ssl || yy_defer_accept); + if (!ssl) + { + conf_report_error("listener 'ANY/%d': support for plaintext listeners is being deprecated and may be removed in a future release. " + "It is suggested that users be migrated to SSL/TLS connections.", args->v.number); + } + add_listener(args->v.number, listener_address, family, ssl, ssl || yy_defer_accept); } }