invalid parameters should be a debug not a warning

pull/2545/head
Isaac Connor 2019-03-04 13:35:36 -05:00
parent ff8c5c5db8
commit 903f5af1ef
1 changed files with 11 additions and 25 deletions

View File

@ -152,30 +152,16 @@ int main( int argc, const char *argv[] ) {
connkey = atoi(value); connkey = atoi(value);
} else if ( !strcmp( name, "buffer" ) ) { } else if ( !strcmp( name, "buffer" ) ) {
playback_buffer = atoi(value); playback_buffer = atoi(value);
} else if ( config.opt_use_auth ) { } else if ( !strcmp( name, "auth" ) ) {
if ( strcmp( config.auth_relay, "none" ) == 0 ) { strncpy( auth, value, sizeof(auth)-1 );
if ( !strcmp( name, "user" ) ) { } else if ( !strcmp( name, "user" ) ) {
username = value; username = UriDecode( value );
} } else if ( !strcmp( name, "pass" ) ) {
} else { password = UriDecode(value);
//if ( strcmp( config.auth_relay, "hashed" ) == 0 ) Debug(1, "Have %s for password", password.c_str());
{ } else {
if ( !strcmp( name, "auth" ) ) { Debug(1, "Unknown parameter passed to zms %s=%s", name, value);
strncpy( auth, value, sizeof(auth)-1 ); } // end if possible parameter names
}
}
//else if ( strcmp( config.auth_relay, "plain" ) == 0 )
{
if ( !strcmp( name, "user" ) ) {
username = UriDecode( value );
}
if ( !strcmp( name, "pass" ) ) {
password = UriDecode( value );
Debug( 1, "Have %s for password", password.c_str() );
}
}
}
}
} // end foreach parm } // end foreach parm
} // end if query } // end if query
@ -323,5 +309,5 @@ int main( int argc, const char *argv[] ) {
logTerm(); logTerm();
zmDbClose(); zmDbClose();
return( 0 ); return(0);
} }