Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
a7f6b854
Commit
a7f6b854
authored
Apr 04, 2022
by
Rob Swindell
💬
Browse files
Include client IP address in HTTP-level error log messages
parent
bf3da76e
Pipeline
#2972
passed with stage
in 9 minutes and 51 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/sbbs3/websrvr.c
src/sbbs3/websrvr.c
+1
-1
No files found.
src/sbbs3/websrvr.c
View file @
a7f6b854
...
...
@@ -1491,7 +1491,7 @@ static void send_error(http_session_t * session, unsigned line, const char* mess
if
(
session
->
socket
==
INVALID_SOCKET
)
return
;
session
->
req
.
if_modified_since
=
0
;
lprintf
(
LOG_INFO
,
"%04d !ERROR: %s (line %u)"
,
session
->
socket
,
message
,
line
);
lprintf
(
LOG_INFO
,
"%04d
[%s]
!ERROR: %s (line %u)"
,
session
->
socket
,
session
->
host_ip
,
message
,
line
);
session
->
req
.
keep_alive
=
FALSE
;
session
->
req
.
send_location
=
NO_LOCATION
;
SAFECOPY
(
error_code
,
message
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment