From 234429a120bfc6fe5e294740f9eeaffcce00ee51 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Sat, 11 Jan 2025 17:41:46 +0100 Subject: [PATCH] docs: correct the information regarding generic request port variable --- pages/docs/api/svrjs-api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/docs/api/svrjs-api.md b/pages/docs/api/svrjs-api.md index 303aaf9..e612edf 100644 --- a/pages/docs/api/svrjs-api.md +++ b/pages/docs/api/svrjs-api.md @@ -131,7 +131,7 @@ You can specify generic request IP variable using `const reqip = req.socket.real A property containing port number, from which request originally went from, if request is sent through reverse proxy. (for _X-Forwarded-For_ header, it will be _null_) -You can specify generic request IP variable using `const reqip = req.socket.realRemotePort ? req.socket.realRemotePort : req.socket.remotePort` +You can specify generic request port variable using `const reqport = req.socket.realRemotePort ? req.socket.realRemotePort : req.socket.remotePort` ### _req.socket.originalRemoteAddress_ @@ -206,7 +206,7 @@ You can specify generic request IP variable using `const reqip = req.socket.real A property containing port number, from which request originally went from, if request is sent through reverse proxy. (for _X-Forwarded-For_ header, it will be _null_) -You can specify generic request IP variable using `const reqip = req.socket.realRemotePort ? req.socket.realRemotePort : req.socket.remotePort` +You can specify generic request port variable using `const reqport = req.socket.realRemotePort ? req.socket.realRemotePort : req.socket.remotePort` ### _res.socket.originalRemoteAddress_