ircd: newconf: impose a deprecation warning for plaintext listeners
This commit is contained in:
parent
f7036bbe6f
commit
35f284c2bd
1 changed files with 11 additions and 1 deletions
|
@ -862,6 +862,11 @@ conf_set_listen_port_both(void *data, int ssl)
|
||||||
}
|
}
|
||||||
if(listener_address == NULL)
|
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);
|
add_listener(args->v.number, listener_address, AF_INET, ssl, ssl || yy_defer_accept);
|
||||||
#ifdef RB_IPV6
|
#ifdef RB_IPV6
|
||||||
add_listener(args->v.number, listener_address, AF_INET6, ssl, ssl || yy_defer_accept);
|
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
|
#endif
|
||||||
family = AF_INET;
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue