Skip to content

Commit

Permalink
removed commented-out code
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-pytel committed Jan 27, 2021
1 parent 7982b33 commit 56e58c5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/plugins/HttpPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,6 @@ class HttpPlugin implements SwPlugin {
try {
span.component = Component.HTTP_SERVER;
span.layer = SpanLayer.HTTP;
// span.peer = req.connection.remoteFamily === 'IPv6'
// ? `[${req.connection.remoteAddress}]:${req.connection.remotePort}`
// : `${req.connection.remoteAddress}:${req.connection.remotePort}`;
span.peer =
(typeof req.headers['x-forwarded-for'] === 'string' && req.headers['x-forwarded-for'].split(',').shift())
|| (req.connection.remoteFamily === 'IPv6'
Expand Down

0 comments on commit 56e58c5

Please sign in to comment.