StackFocus / SwagIP

A simple way to get your public IP address and other connection related information from any device
MIT License
3 stars 1 forks source link

Responds to wget, curl, and fetch(?) #6

Closed thatarchguy closed 9 years ago

thatarchguy commented 9 years ago

Checks user-agent for wget, curl, and fetch

The ip address gets iffy since we will be running this behind a load balancer / reverse proxy. So we need to grab the "X-Forwarded-For" out of the header. Thankfully werkzeug does this for us automatically.

Solves #2