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

Working, but one thing #1

Open
VBPROGER opened this issue Mar 12, 2022 · 5 comments
Open

Working, but one thing #1

VBPROGER opened this issue Mar 12, 2022 · 5 comments

Comments

@VBPROGER
Copy link

It returns local IP; not public.

@1x6
Copy link

1x6 commented Mar 12, 2022

fr lolz

@ProgrammingMyLife
Copy link
Owner

ProgrammingMyLife commented Mar 12, 2022 via email

@1x6
Copy link

1x6 commented Mar 12, 2022

return jsonify({'ip': request.environ.get('HTTP_X_FORWARDED_FOR', request.remote_addr) }), 200
works fine

@VBPROGER
Copy link
Author

Yes, but it returns local IP again.

@1x6
Copy link

1x6 commented Mar 13, 2022

oh lol
just make it print all the headers and see if theres ur ip in any of them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants