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
d3898e42
Commit
d3898e42
authored
16 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Logs blocked client's IP or hostname as part of warning.
parent
7b35daa3
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/main.cpp
+4
-3
4 additions, 3 deletions
src/sbbs3/main.cpp
with
4 additions
and
3 deletions
src/sbbs3/main.cpp
+
4
−
3
View file @
d3898e42
...
...
@@ -5028,8 +5028,8 @@ NO_SSH:
if
(
sbbs
->
trashcan
(
host_ip
,
"ip"
))
{
SSH_END
();
close_socket
(
client_socket
);
lprintf
(
LOG_NOTICE
,
"%04d !CLIENT BLOCKED in ip.can"
,
client_socket
);
lprintf
(
LOG_NOTICE
,
"%04d !CLIENT BLOCKED in ip.can
: %s
"
,
client_socket
,
host_ip
);
SAFEPRINTF
(
logstr
,
"Blocked IP: %s"
,
host_ip
);
sbbs
->
syslog
(
"@!"
,
logstr
);
continue
;
...
...
@@ -5067,7 +5067,8 @@ NO_SSH:
if
(
sbbs
->
trashcan
(
host_name
,
"host"
))
{
SSH_END
();
close_socket
(
client_socket
);
lprintf
(
LOG_NOTICE
,
"%04d !CLIENT BLOCKED in host.can"
,
client_socket
);
lprintf
(
LOG_NOTICE
,
"%04d !CLIENT BLOCKED in host.can: %s"
,
client_socket
,
host_name
);
SAFEPRINTF
(
logstr
,
"Blocked Hostname: %s"
,
host_name
);
sbbs
->
syslog
(
"@!"
,
logstr
);
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