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
32a29523
Commit
32a29523
authored
3 years ago
by
Randy Sommerfeld
Browse files
Options
Downloads
Patches
Plain Diff
Use correct object when logging socket errors
parent
5dd67f7d
No related branches found
No related tags found
1 merge request
!463
MRC mods by Codefenix (2024-10-20)
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
exec/load/ircd/core.js
+6
-6
6 additions, 6 deletions
exec/load/ircd/core.js
with
6 additions
and
6 deletions
exec/load/ircd/core.js
+
6
−
6
View file @
32a29523
...
...
@@ -2719,8 +2719,8 @@ function accept_new_socket() {
sock
=
this
.
accept
();
if
(
!
sock
)
{
log
(
LOG_DEBUG
,
"
!ERROR
"
+
sock
.
error
+
"
accepting connection
"
);
return
1
;
log
(
LOG_DEBUG
,
format
(
"
!ERROR
%s
accepting connection
"
,
this
.
error
)
);
return
false
;
}
sock
.
array_buffer
=
false
;
/* JS78, we want strings */
...
...
@@ -2728,7 +2728,7 @@ function accept_new_socket() {
if
(
!
sock
.
local_port
)
{
log
(
LOG_DEBUG
,
"
!ERROR Socket has no local port. Closing.
"
);
sock
.
close
();
return
1
;
return
false
;
}
log
(
LOG_DEBUG
,
"
Accepting new connection on port
"
+
sock
.
local_port
);
...
...
@@ -2748,7 +2748,7 @@ function accept_new_socket() {
if
(
!
sock
.
remote_ip_address
)
{
log
(
LOG_DEBUG
,
"
!ERROR Socket has no IP address. Closing.
"
);
sock
.
close
();
return
1
;
return
false
;
}
if
(
IP_Banned
(
sock
.
remote_ip_address
))
{
...
...
@@ -2757,7 +2757,7 @@ function accept_new_socket() {
ServerName
));
sock
.
close
();
return
1
;
return
false
;
}
if
(
server
.
client_add
!==
undefined
)
{
...
...
@@ -2775,7 +2775,7 @@ function accept_new_socket() {
Unregistered
[
id
]
=
unreg_obj
;
return
0
;
return
true
;
}
function
Startup
()
{
...
...
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