Do not display empty CLI passwd alert if no CLI

Fix #361
This commit is contained in:
Mathieu Brunot 2019-03-11 10:37:52 +01:00 committed by GitHub
parent 5e61bea8ec
commit 073fa0bd2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2249,7 +2249,7 @@ int main(int argc, char **argv)
}
}
if(cli_password[0]==0) {
if(use_cli && 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;
}