Skip to content

Commit 3efc7e7

Browse files
authored
docs: Node client ip address extraction (#1525)
1 parent 1e9cb4d commit 3efc7e7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/collections/_documentation/platforms/node/connect.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ serverName?: boolean; // default: true
6464
transaction?: boolean | 'path' | 'methodPath' | 'handler'; // default: true = 'methodPath'
6565
// keys to be extracted from req.user
6666
user?: boolean | string[]; // default: true = ['id', 'username', 'email']
67+
// client ip address
68+
ip?: boolean; // default: false
6769
// node version
6870
version?: boolean; // default: true
6971
// timeout for fatal route errors to be delivered

src/collections/_documentation/platforms/node/express.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ serverName?: boolean; // default: true
6969
transaction?: boolean | 'path' | 'methodPath' | 'handler'; // default: true = 'methodPath'
7070
// keys to be extracted from req.user
7171
user?: boolean | string[]; // default: true = ['id', 'username', 'email']
72+
// client ip address
73+
ip?: boolean; // default: false
7274
// node version
7375
version?: boolean; // default: true
7476
// timeout for fatal route errors to be delivered

0 commit comments

Comments
 (0)