@dargmuesli/nuxt-vio 13.1.7 → 13.1.8

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -116,5 +116,5 @@
116
116
  "start:static": "serve .playground/.output/public --ssl-cert ./.config/certificates/ssl.crt --ssl-key ./.config/certificates/ssl.key"
117
117
  },
118
118
  "type": "module",
119
- "version": "13.1.7"
119
+ "version": "13.1.8"
120
120
  }
@@ -12,7 +12,7 @@ export const getTimezoneServer = async (event: H3Event) => {
12
12
 
13
13
  if (timezoneByCookie) return timezoneByCookie
14
14
 
15
- const ip = event.node.req.headers['x-real-ip']
15
+ const ip = getRequestIP(event, { xForwardedFor: true })
16
16
 
17
17
  console.log(`X-Real-IP: ${ip}`) // TODO: remove once traefik setup is clear
18
18