mirror of
https://github.com/coturn/coturn.git
synced 2025-10-27 13:00:59 +01:00
empty cli-password not allowed=>disable telnet cli
Adds a warning to set a cli-password and disable telnet cli interface.
This commit is contained in:
parent
8b46733fa1
commit
6b2fc221ce
@ -2240,6 +2240,7 @@ int main(int argc, char **argv)
|
||||
"Be aware that you could not mix the username/password and the shared secret based auth methohds. \n"
|
||||
"Shared secret overrides username/password based auth method. Check your configuration!\n");
|
||||
}
|
||||
|
||||
if(turn_params.allow_loopback_peers) {
|
||||
TURN_LOG_FUNC(TURN_LOG_LEVEL_WARNING, "CONFIG WARNING: allow_loopback_peers opens a possible security vulnerability. Do not use in production!!\n");
|
||||
if(cli_password[0]==0) {
|
||||
@ -2248,6 +2249,11 @@ int main(int argc, char **argv)
|
||||
}
|
||||
}
|
||||
|
||||
if(cli_password[0]==0) {
|
||||
TURN_LOG_FUNC(TURN_LOG_LEVEL_ERROR, "\nCONFIG ERROR: Empty cli-password, and so telnet cli interface is disabled! Please set a non empty cli-password!\n");
|
||||
use_cli = 0;
|
||||
}
|
||||
|
||||
if(!use_lt_credentials && !anon_credentials) {
|
||||
if(turn_params.default_users_db.ram_db.users_number) {
|
||||
TURN_LOG_FUNC(TURN_LOG_LEVEL_WARNING, "\nCONFIGURATION ALERT: you specified long-term user accounts, (-u option) \n but you did not specify the long-term credentials option\n (-a or --lt-cred-mech option).\n I am turning --lt-cred-mech ON for you, but double-check your configuration.\n");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user