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
643e3b21
Commit
643e3b21
authored
3 years ago
by
Deucе
Browse files
Options
Downloads
Patches
Plain Diff
Default to IPV6_V6ONLY=1 for jsdoor
parent
6aa0bb7c
No related branches found
No related tags found
1 merge request
!463
MRC mods by Codefenix (2024-10-20)
Pipeline
#1747
passed
3 years ago
Stage: build
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/sockopts.c
+7
-1
7 additions, 1 deletion
src/sbbs3/sockopts.c
with
7 additions
and
1 deletion
src/sbbs3/sockopts.c
+
7
−
1
View file @
643e3b21
...
...
@@ -58,8 +58,14 @@ int DLLCALL set_socket_options(scfg_t* cfg, SOCKET sock, const char* protocol, c
/* Set user defined socket options */
iniFileName
(
cfgfile
,
sizeof
(
cfgfile
),
cfg
->
ctrl_dir
,
"sockopts.ini"
);
if
((
fp
=
iniOpenFile
(
cfgfile
,
FALSE
))
==
NULL
)
if
((
fp
=
iniOpenFile
(
cfgfile
,
FALSE
))
==
NULL
)
{
#ifdef JSDOOR
int
optval
=
1
;
// Set the only sane choice...
setsockopt
(
sock
,
IPPROTO_IPV6
,
IPV6_V6ONLY
,
(
void
*
)
&
optval
,
sizeof
(
optval
));
#endif
return
(
0
);
}
list
=
iniReadFile
(
fp
);
fclose
(
fp
);
...
...
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