Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
STJr
SRB2
Commits
0131cdb0
Unverified
Commit
0131cdb0
authored
1 year ago
by
Hanicef
Browse files
Options
Downloads
Patches
Plain Diff
Fix IPv6 bans being ignored when loading banlist
parent
99d03104
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!2355
fix newer versions of mixerx
,
!2235
Fix IPv6 bans being ignored when loading banlist
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/netcode/commands.c
+9
-1
9 additions, 1 deletion
src/netcode/commands.c
with
9 additions
and
1 deletion
src/netcode/commands.c
+
9
−
1
View file @
0131cdb0
...
@@ -79,7 +79,7 @@ static void Ban_Clear(void)
...
@@ -79,7 +79,7 @@ static void Ban_Clear(void)
void
Ban_Load_File
(
boolean
warning
)
void
Ban_Load_File
(
boolean
warning
)
{
{
FILE
*
f
;
FILE
*
f
;
const
char
*
address
,
*
mask
;
char
*
address
,
*
mask
;
char
buffer
[
MAX_WADPATH
];
char
buffer
[
MAX_WADPATH
];
if
(
!
I_ClearBans
)
if
(
!
I_ClearBans
)
...
@@ -100,6 +100,14 @@ void Ban_Load_File(boolean warning)
...
@@ -100,6 +100,14 @@ void Ban_Load_File(boolean warning)
{
{
address
=
strtok
(
buffer
,
"
\t\r\n
"
);
address
=
strtok
(
buffer
,
"
\t\r\n
"
);
mask
=
strtok
(
NULL
,
"
\t\r\n
"
);
mask
=
strtok
(
NULL
,
"
\t\r\n
"
);
if
(
address
[
0
]
==
'['
)
{
size_t
len
;
address
++
;
len
=
strlen
(
address
);
if
(
address
[
len
-
1
]
==
']'
)
address
[
len
-
1
]
=
'\0'
;
}
I_SetBanAddress
(
address
,
mask
);
I_SetBanAddress
(
address
,
mask
);
...
...
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