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
6fc93992
Commit
6fc93992
authored
15 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
If QWK-imported message's SenderHostName field is an IP address, resolve that
to a host name before comparing against host.can.
parent
d4e1f0ee
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/sbbs3/sbbs.h
+1
-0
1 addition, 0 deletions
src/sbbs3/sbbs.h
src/sbbs3/un_qwk.cpp
+4
-2
4 additions, 2 deletions
src/sbbs3/un_qwk.cpp
src/sbbs3/un_rep.cpp
+4
-2
4 additions, 2 deletions
src/sbbs3/un_rep.cpp
with
9 additions
and
4 deletions
src/sbbs3/sbbs.h
+
1
−
0
View file @
6fc93992
...
...
@@ -130,6 +130,7 @@ extern int thread_suid_broken; /* NPTL is no longer broken */
#endif
#include
"genwrap.h"
#include
"semfile.h"
#include
"netwrap.h"
#include
"dirwrap.h"
#include
"filewrap.h"
#include
"datewrap.h"
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/un_qwk.cpp
+
4
−
2
View file @
6fc93992
...
...
@@ -67,6 +67,7 @@ bool sbbs_t::unpack_qwk(char *packet,uint hubnum)
str_list_t
host_can
=
NULL
;
str_list_t
subject_can
=
NULL
;
str_list_t
twit_list
=
NULL
;
const
char
*
hostname
;
memset
(
&
msg
,
0
,
sizeof
(
msg
));
...
...
@@ -163,10 +164,11 @@ bool sbbs_t::unpack_qwk(char *packet,uint hubnum)
continue
;
}
if
(
findstr_in_list
(
msg
.
from_host
,
host_can
))
{
hostname
=
getHostNameByAddr
(
msg
.
from_host
);
if
(
findstr_in_list
(
hostname
,
host_can
))
{
eprintf
(
LOG_NOTICE
,
"!Filtering QWK message from %s due to blocked hostname: %s"
,
msg
.
from
,
msg
.
from_
host
);
,
host
name
);
continue
;
}
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/un_rep.cpp
+
4
−
2
View file @
6fc93992
...
...
@@ -67,6 +67,7 @@ bool sbbs_t::unpack_rep(char* repfile)
str_list_t
host_can
=
NULL
;
str_list_t
subject_can
=
NULL
;
str_list_t
twit_list
=
NULL
;
const
char
*
hostname
;
const
char
*
AttemptedToUploadREPpacket
=
"Attempted to upload REP packet"
;
memset
(
&
msg
,
0
,
sizeof
(
msg
));
...
...
@@ -192,10 +193,11 @@ bool sbbs_t::unpack_rep(char* repfile)
continue
;
}
if
(
findstr_in_list
(
msg
.
from_host
,
host_can
))
{
hostname
=
getHostNameByAddr
(
msg
.
from_host
);
if
(
findstr_in_list
(
hostname
,
host_can
))
{
SAFEPRINTF2
(
str
,
"!Filtering QWK message from %s due to blocked hostname: %s"
,
msg
.
from
,
msg
.
from_
host
);
,
host
name
);
logline
(
"P!"
,
str
);
continue
;
}
...
...
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