Skip to content
Snippets Groups Projects
Commit 8126b6dc authored by rswindell's avatar rswindell
Browse files

BBS, FTP, and Services JavaScript max heap size now configurable with

"JavaScriptMaxBytes" .ini file key.
Services configuration filename now configurable with "ConfigFile" .ini key.
parent 651b139e
No related branches found
No related tags found
No related merge requests found
......@@ -138,7 +138,7 @@ void sbbs_read_ini(
bbs->xtrn_polls_before_yield
=iniReadInteger(fp,section,"ExternalYield",10);
bbs->js_max_bytes
=iniReadInteger(fp,section,"JS_MaxBytes",0);
=iniReadInteger(fp,section,"JavaScriptMaxBytes",0);
/* Set default terminal type to "stock" termcap closest to "ansi-bbs" */
#if defined(__FreeBSD__)
......@@ -175,6 +175,8 @@ void sbbs_read_ini(
=iniReadShortInt(fp,section,"MaxInactivity",300); /* seconds */
ftp->qwk_timeout
=iniReadShortInt(fp,section,"QwkTimeout",600); /* seconds */
ftp->js_max_bytes
=iniReadInteger(fp,section,"JavaScriptMaxBytes",0);
SAFECOPY(ftp->index_file_name
,iniReadString(fp,section,"IndexFileName","00index"));
......@@ -254,6 +256,12 @@ void sbbs_read_ini(
services->interface_addr
=iniReadIpAddress(fp,section,"Interface",INADDR_ANY);
services->js_max_bytes
=iniReadInteger(fp,section,"JavaScriptMaxBytes",0);
SAFECOPY(services->cfg_file
,iniReadString(fp,section,"ConfigFile",nulstr));
SAFECOPY(services->answer_sound
,iniReadString(fp,section,"AnswerSound",nulstr));
SAFECOPY(services->hangup_sound
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment