Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
fbfc6561
Commit
fbfc6561
authored
21 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Added global "Interface" key to set the default network interface for all
servers and services.
parent
818e05d3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/sbbs_ini.c
+9
-6
9 additions, 6 deletions
src/sbbs3/sbbs_ini.c
with
9 additions
and
6 deletions
src/sbbs3/sbbs_ini.c
+
9
−
6
View file @
fbfc6561
...
...
@@ -156,12 +156,14 @@ void sbbs_read_ini(
const
char
*
default_term_ansi
;
const
char
*
default_cgi_temp
;
const
char
*
default_dosemu_path
;
const
char
*
strInterface
=
"Interface"
;
const
char
*
strJavaScriptMaxBytes
=
"JavaScriptMaxBytes"
;
const
char
*
strSemFileCheckFrequency
=
"SemFileCheckFrequency"
;
char
*
ctrl_dir
;
char
*
temp_dir
;
char
host_name
[
128
];
char
value
[
MAX_VALUE_LEN
];
ulong
interface_addr
;
ulong
js_max_bytes
;
ushort
sem_chk_freq
;
...
...
@@ -185,6 +187,7 @@ void sbbs_read_ini(
SAFECOPY
(
host_name
,
iniGetString
(
fp
,
section
,
"HostName"
,
nulstr
,
value
));
js_max_bytes
=
iniGetInteger
(
fp
,
section
,
strJavaScriptMaxBytes
,
0
);
sem_chk_freq
=
iniGetShortInt
(
fp
,
section
,
strSemFileCheckFrequency
,
0
);
interface_addr
=
iniGetIpAddress
(
fp
,
section
,
strInterface
,
INADDR_ANY
);
/***********************************************************************/
if
(
bbs
!=
NULL
)
{
...
...
@@ -195,12 +198,12 @@ void sbbs_read_ini(
*
run_bbs
=
iniGetBool
(
fp
,
section
,
"AutoStart"
,
TRUE
);
bbs
->
telnet_interface
=
iniGetIpAddress
(
fp
,
section
,
"TelnetInterface"
,
INADDR_ANY
);
=
iniGetIpAddress
(
fp
,
section
,
"TelnetInterface"
,
interface_addr
);
bbs
->
telnet_port
=
iniGetShortInt
(
fp
,
section
,
"TelnetPort"
,
IPPORT_TELNET
);
bbs
->
rlogin_interface
=
iniGetIpAddress
(
fp
,
section
,
"RLoginInterface"
,
INADDR_ANY
);
=
iniGetIpAddress
(
fp
,
section
,
"RLoginInterface"
,
interface_addr
);
bbs
->
rlogin_port
=
iniGetShortInt
(
fp
,
section
,
"RLoginPort"
,
513
);
...
...
@@ -265,7 +268,7 @@ void sbbs_read_ini(
*
run_ftp
=
iniGetBool
(
fp
,
section
,
"AutoStart"
,
TRUE
);
ftp
->
interface_addr
=
iniGetIpAddress
(
fp
,
section
,
"
Interface
"
,
INADDR_ANY
);
=
iniGetIpAddress
(
fp
,
section
,
str
Interface
,
interface_addr
);
ftp
->
port
=
iniGetShortInt
(
fp
,
section
,
"Port"
,
ftp
->
port
);
ftp
->
max_clients
...
...
@@ -310,7 +313,7 @@ void sbbs_read_ini(
*
run_mail
=
iniGetBool
(
fp
,
section
,
"AutoStart"
,
TRUE
);
mail
->
interface_addr
=
iniGetIpAddress
(
fp
,
section
,
"
Interface
"
,
INADDR_ANY
);
=
iniGetIpAddress
(
fp
,
section
,
str
Interface
,
interface_addr
);
mail
->
smtp_port
=
iniGetShortInt
(
fp
,
section
,
"SMTPPort"
,
IPPORT_SMTP
);
mail
->
pop3_port
...
...
@@ -374,7 +377,7 @@ void sbbs_read_ini(
*
run_services
=
iniGetBool
(
fp
,
section
,
"AutoStart"
,
TRUE
);
services
->
interface_addr
=
iniGetIpAddress
(
fp
,
section
,
"
Interface
"
,
INADDR_ANY
);
=
iniGetIpAddress
(
fp
,
section
,
str
Interface
,
interface_addr
);
services
->
sem_chk_freq
=
iniGetShortInt
(
fp
,
section
,
strSemFileCheckFrequency
,
sem_chk_freq
);
...
...
@@ -407,7 +410,7 @@ void sbbs_read_ini(
*
run_web
=
iniGetBool
(
fp
,
section
,
"AutoStart"
,
FALSE
);
web
->
interface_addr
=
iniGetIpAddress
(
fp
,
section
,
"
Interface
"
,
INADDR_ANY
);
=
iniGetIpAddress
(
fp
,
section
,
str
Interface
,
interface_addr
);
web
->
port
=
iniGetShortInt
(
fp
,
section
,
"Port"
,
IPPORT_HTTP
);
web
->
sem_chk_freq
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment