Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check for forwarded ip to not block full companies/institutes and stuff #19

Closed
github-actions bot opened this issue Jan 30, 2022 · 1 comment
Closed

Comments

@github-actions
Copy link

Line: 122

}
watchedObject[ip] = ip
}
// TODO: check for forwarded ip to not block full companies/institutes and stuff
// category=nuxt
export const idFromSocket = (socket) => {
if (socket.handshake.headers.origin === 'http://localhost:3000') {
return '127.0.0.1'
}
let clientIp = '0.0.0.0'
if ('x-real-ip' in socket.handshake.headers) {

@GREEB
Copy link
Owner

GREEB commented Feb 1, 2022

this may be closed idk

@GREEB GREEB closed this as completed Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant