jandecaluwe / urubu

A micro CMS for static websites, with a focus on good navigation practices.
urubu.jandecaluwe.com
GNU Affero General Public License v3.0
179 stars 36 forks source link

main.py: Make serving on localhost the default #49

Closed twinshadow closed 8 years ago

twinshadow commented 8 years ago

This also adds a new command, serveany, which acts just like the old code. Safer defaults while not removing old functionality.

On OSX 10.10.5, the following will pop up with any connection using INADDR_ANY while the program is no explicitly authorized to do so. It does not pop-up when serving to localhost or loopback addresses.

screen shot 2016-05-06 at 14 52 22

Tested by running python -m urubu serve and python -m urubu serveany from the urubu-quickstart checkout and navigating the site.

jandecaluwe commented 8 years ago

Can you explain what the issue is with the existing method that this new feature solves?

twinshadow commented 8 years ago

The only real issue (annoyance) is the warning pop-op in OSX that I posted with my first comment. Some people may consider any program or service running on INADDR_ANY to be a security risk, so I changed the default serve behaviour for that reason.

jandecaluwe commented 8 years ago

Ok, thx.