Commit cfabc878 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

telnet: refuse to start without a password

(This should probably be moved to Lua code.)
parent 1360ac9f
......@@ -423,5 +423,13 @@ int Open_LuaCLI( vlc_object_t *p_this )
int Open_LuaTelnet( vlc_object_t *p_this )
{
char *pw = var_CreateGetNonEmptyString( p_this, "telnet-password" );
if( pw == NULL )
{
msg_Err( p_this, "password not configured" );
msg_Info( p_this, "Please specify the password in the preferences." );
return VLC_EGENERIC;
}
free( pw );
return Start_LuaIntf( p_this, "telnet" );
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment