@live-change/framework 0.7.22 → 0.7.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/runtime/utils.js +1 -0
- package/package.json +3 -3
package/lib/runtime/utils.js
CHANGED
|
@@ -3,6 +3,7 @@ function getIp(connection) {
|
|
|
3
3
|
connection.headers['x-real-ip'] ||
|
|
4
4
|
connection.headers['x-forwarded-for'] ||
|
|
5
5
|
connection.remoteAddress
|
|
6
|
+
if(!ip) return undefined
|
|
6
7
|
ip = ip.split(',')[0]
|
|
7
8
|
ip = ip.split(':').slice(-1)[0] //in case the ip returned in a format: "::ffff:146.xxx.xxx.xxx"
|
|
8
9
|
return ip
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/framework",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.23",
|
|
4
4
|
"description": "Live Change Framework - ultimate solution for real time mobile/web apps",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@live-change/db-store-level": "0.6.6",
|
|
28
28
|
"@live-change/db-store-lmdb": "0.6.6",
|
|
29
29
|
"@live-change/sockjs": "0.4.1",
|
|
30
|
-
"@live-change/uid": "^0.7.
|
|
30
|
+
"@live-change/uid": "^0.7.23",
|
|
31
31
|
"cookie": "^0.4.1",
|
|
32
32
|
"express": "^4.18.1",
|
|
33
33
|
"os-service": "^2.2.0",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"tape": "^5.3.2",
|
|
36
36
|
"websocket": "^1.0.34"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "dc771ac085b8a54f18a38c65de923a1cdbdcdadc"
|
|
39
39
|
}
|