Skip to content

Commit 351e3a0

Browse files
version 1.0.26
1 parent 0a6ab87 commit 351e3a0

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

package-lock.json

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "uquik",
3-
"version": "1.0.25",
3+
"version": "1.0.26",
44
"description": "uQuik HTTP(S) framework",
55
"main": "index.js",
66
"scripts": {
@@ -9,7 +9,7 @@
99
"dependencies": {
1010
"ajv": "^8.11.0",
1111
"dotenv": "^16.0.1",
12-
"fast-jwt": "^1.5.4",
12+
"fast-jwt": "^1.6.0",
1313
"fast-uri": "^2.1.0",
1414
"readable-stream": "^4.0.0",
1515
"steed": "^1.1.3",
@@ -37,11 +37,11 @@
3737
},
3838
"homepage": "https://github.com/piliugin-anton/uQuik#readme",
3939
"devDependencies": {
40-
"eslint": "^8.17.0",
40+
"eslint": "^8.19.0",
4141
"eslint-config-standard": "^17.0.0",
4242
"eslint-plugin-import": "^2.26.0",
43-
"eslint-plugin-n": "^15.2.3",
43+
"eslint-plugin-n": "^15.2.4",
4444
"eslint-plugin-promise": "^6.0.0",
4545
"nanobench": "^2.1.1"
4646
}
47-
}
47+
}

src/Request.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,14 +615,14 @@ class Request extends Readable {
615615
* @returns {String}
616616
*/
617617
get ip () {
618-
// Convert Remote IP to string on first access
619618
if (this.remote_ip) return this.remote_ip
620619

621620
if (this.app_options.get('trust_proxy')) {
622621
const xForwardedFor = this.headers.get('x-forwarded-for')
623622
if (xForwardedFor) return (this.remote_ip = xForwardedFor.split(',')[0])
624623
}
625624

625+
// Convert Remote IP to string on first access
626626
return (this.remote_ip = getIP(this._remote_ip))
627627
}
628628

0 commit comments

Comments
 (0)