Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
941f7fc0
Commit
941f7fc0
authored
Jul 23, 2003
by
deuce
Browse files
Allow mail, ftp, and bbs servers to recycle if all their ports are not
< 1024 Web and services threads will still not recycle.
parent
c984d048
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
src/sbbs3/sbbscon.c
src/sbbs3/sbbscon.c
+14
-3
No files found.
src/sbbs3/sbbscon.c
View file @
941f7fc0
...
...
@@ -1526,9 +1526,20 @@ int main(int argc, char** argv)
/* ToDo: Something seems to be broken here on FreeBSD now */
/* ToDo: Now, they try to re-bind on FreeBSD */
/* ToDo: Seems like I switched problems with Linux */
if
(
bbs_startup
.
telnet_port
<
1024
||
(
bbs_startup
.
options
&
BBS_OPT_ALLOW_RLOGIN
&&
bbs_startup
.
rlogin_port
<
1024
))
bbs_startup
.
options
|=
BBS_OPT_NO_RECYCLE
;
if
(
ftp_startup
.
port
<
1024
)
ftp_startup
.
options
|=
FTP_OPT_NO_RECYCLE
;
if
((
mail_startup
.
options
&
MAIL_OPT_RELAY_TX
&&
mail_startup
.
relay_port
<
1024
)
||
(
mail_startup
.
options
&
MAIL_OPT_ALLOW_POP3
&&
mail_startup
.
pop3_port
<
1024
)
||
(
!
(
mail_startup
.
options
&
MAIL_OPT_NO_SENDMAIL
)
&&
mail_startup
.
smtp_port
<
1024
))
mail_startup
.
options
|=
MAIL_OPT_NO_RECYCLE
;
/* Perhaps a BBS_OPT_NO_RECYCLE_LOW option? */
services_startup
.
options
|=
BBS_OPT_NO_RECYCLE
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment