whatap 1.0.6-canary.0 → 1.0.6

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.
@@ -218,8 +218,7 @@ function initCtx(req, res) {
218
218
  if(remote_addr.includes(',')) {
219
219
  remote_addr = remote_addr.split(',')[0].trim();
220
220
  }
221
- remote_addr=IPUtil.checkIp4(remote_addr);
222
- ctx.remoteIp = IPUtil.stringToInt(remote_addr);
221
+ ctx.remoteIp = IPUtil.checkIp4(remote_addr);
223
222
  switch (conf.trace_user_using_type || 3) {
224
223
  case 1:
225
224
  ctx.userid = Long.fromNumber(ctx.remoteIp);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "whatap",
3
3
  "homepage": "http://www.whatap.io",
4
- "version": "1.0.6-canary.0",
4
+ "version": "1.0.6",
5
5
  "releaseDate": "20251030",
6
6
  "description": "Monitoring and Profiling Service",
7
7
  "main": "index.js",