This commit is contained in:
jl777
2016-10-25 15:04:07 -03:00
parent d84012ad44
commit 46beb55e21
2 changed files with 7 additions and 7 deletions

View File

@@ -980,12 +980,12 @@ void komodo_configfile(char *symbol,uint16_t port)
if ( line[0] == '#' )
continue;
//printf("line.(%s) %p %p\n",line,strstr(line,"rpcuser"),strstr(line,"rpcpassword"));
if ( (str= strstr(line,"rpcuser")) != 0 )
rpcuser = parse_conf_line(str,"rpcuser");
else if ( (str= strstr(line,"rpcpassword")) != 0 )
rpcpassword = parse_conf_line(str,"rpcpassword");
else if ( (str= strstr(line,"rpcport")) != 0 )
rpcport = parse_conf_line(str,"rpcport");
if ( (str= strstr(line,(char *)"rpcuser")) != 0 )
rpcuser = parse_conf_line(str,(char *)"rpcuser");
else if ( (str= strstr(line,(char *)"rpcpassword")) != 0 )
rpcpassword = parse_conf_line(str,(char *)"rpcpassword");
else if ( (str= strstr(line,(char *)"rpcport")) != 0 )
rpcport = parse_conf_line(str,(char *)"rpcport");
}
if ( rpcuser != 0 && rpcpassword != 0 )
{