Skip to content

Commit

Permalink
Fix parseIp
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihajlo-Pavlovic committed Feb 19, 2025
1 parent 9f6745f commit bd03b06
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "origintrail_node",
"version": "8.0.1+hotfix.6",
"version": "8.0.1+hotfix.9",
"description": "OTNode V8",
"main": "index.js",
"type": "module",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ const parseIp = (req) => {
let xForwardedFor;
let socketRemoteAddress;

if (req.headers['x-forwarded-for']) {
xForwardedFor = req.headers['x-forwarded-for'].split(',').shift();
}

if (req.socket) {
socketRemoteAddress = req.socket.remoteAddress;
}
Expand Down

0 comments on commit bd03b06

Please sign in to comment.