ProgrammingMyLife / flask-iplogger

simple ip logger in flask
2 stars 0 forks source link

Working, but one thing #1

Open VBPROGER opened 2 years ago

VBPROGER commented 2 years ago

It returns local IP; not public.

1x6 commented 2 years ago

fr lolz

ProgrammingMyLife commented 2 years ago

Yea bc this repo is a year old and the flask module updated . Also this repo is pretty shitty and you can find a better one if you do a little bit of looking . TLDR I’m too lazy to fix this

On Sat, Mar 12, 2022 at 1:26 PM xeny @.***> wrote:

fr lolz

— Reply to this email directly, view it on GitHub https://github.com/ProgrammingMyLife/flask-iplogger/issues/1#issuecomment-1065965363, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASAOSJKMYLNJAK26KYFEVFDU7UDYXANCNFSM5QSAGRUA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

1x6 commented 2 years ago

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

VBPROGER commented 2 years ago

Yes, but it returns local IP again.

1x6 commented 2 years ago

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