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
d45adde1
Commit
d45adde1
authored
23 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Added command-line options to enable: auto-logon via IP, sysop availability
(for chat), and user identity lookups (using IDENT protocol).
parent
ae8caf3a
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/sbbscon.c
+34
-5
34 additions, 5 deletions
src/sbbs3/sbbscon.c
with
34 additions
and
5 deletions
src/sbbs3/sbbscon.c
+
34
−
5
View file @
d45adde1
...
...
@@ -75,33 +75,36 @@ static const char* prompt =
static
const
char
*
usage
=
"usage: %s [[option] [...]]
\n
"
"
\n
"
"Telnet server options:
\n\n
"
"
\t
td enable Telnet option debug output
\n
"
"
\t
tf<node> set first Telnet node number
\n
"
"
\t
tl<node> set last Telnet node number
\n
"
"
\t
tp<port> set Telnet server port
\n
"
"
\t
rp<port> set RLogin server port (and enable RLogin server)
\n
"
"
\t
r2 use second RLogin name in BSD RLogin
\n
"
"
\t
al enable auto-logon via IP address
\n
"
"
\t
td enable Telnet option debug output
\n
"
"
\t
nq disable QWK events
\n
"
"
\t
sa sysop available for chat
\n
"
"
\n
"
"FTP server options:
\n
"
"
\n
"
"
\t
f- disable FTP server
\n
"
"
\t
fp<port> set FTP server port
\n
"
"
\t
f- disable FTP server
\n
"
"
\n
"
"Mail server options:
\n
"
"
\n
"
"
\t
m- disable Mail server
\n
"
"
\t
p- disable POP3 server
\n
"
"
\t
s- disable SendMail thread
\n
"
"
\t
sp<port> set SMTP server port
\n
"
"
\t
sr<port> set SMTP relay port
\n
"
"
\t
pp<port> set POP3 server port
\n
"
"
\t
m- disable Mail server
\n
"
"
\t
p- disable POP3 server
\n
"
"
\t
s- disable SendMail thread
\n
"
"
\n
"
"Global options:
\n
"
"
\n
"
#ifdef __unix__
"
\t
un<user> set username for BBS to run as
\n
"
#endif
"
\t
gi get user identity (using IDENT protocol)
\n
"
"
\t
nh disable hostname lookups
\n
"
"
\t
nj disable JavaScript support
\n
"
"
\t
ns disable Services (no services module)
\n
"
...
...
@@ -556,6 +559,16 @@ int main(int argc, char** argv)
return
(
0
);
}
switch
(
toupper
(
*
(
arg
++
)))
{
case
'A'
:
switch
(
toupper
(
*
(
arg
++
)))
{
case
'L'
:
/* Auto-logon via IP */
bbs_startup
.
options
|=
BBS_OPT_AUTO_LOGON
;
break
;
default:
printf
(
usage
,
argv
[
0
]);
return
(
0
);
}
break
;
case
'T'
:
/* Telnet settings */
switch
(
toupper
(
*
(
arg
++
)))
{
case
'D'
:
/* debug output */
...
...
@@ -602,6 +615,19 @@ int main(int argc, char** argv)
return
(
0
);
}
break
;
case
'G'
:
/* GET */
switch
(
toupper
(
*
(
arg
++
)))
{
case
'I'
:
/* Identity */
bbs_startup
.
options
|=
BBS_OPT_GET_IDENT
;
ftp_startup
.
options
|=
BBS_OPT_GET_IDENT
;
mail_startup
.
options
|=
BBS_OPT_GET_IDENT
;
services_startup
.
options
|=
BBS_OPT_GET_IDENT
;
break
;
default:
printf
(
usage
,
argv
[
0
]);
return
(
0
);
}
break
;
case
'S'
:
/* SMTP/SendMail */
switch
(
toupper
(
*
(
arg
++
)))
{
case
'-'
:
...
...
@@ -613,6 +639,9 @@ int main(int argc, char** argv)
case
'R'
:
mail_startup
.
relay_port
=
atoi
(
arg
);
break
;
case
'A'
:
/* Sysop available for chat */
bbs_startup
.
options
|=
BBS_OPT_SYSOP_AVAILABLE
;
break
;
default:
printf
(
usage
,
argv
[
0
]);
return
(
0
);
...
...
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