michael-martin/PBD-Live.js-for-WordPress — pull request #1 by tnorthcutt (2012-05-04 19:08:14+00:00)
Title: Improve detection of local site

On my local machine, I edit my hosts file and create a VirtualHost entry in httpd-vhosts.conf, so SERVER_NAME is never localhost or 127.0.0.1 for me. This commit checks to see if SERVER_ADDR is 127.0.0.1, which is in fact true in my situation. I'm not certain this is the best method of detecting whether this is running on a 'local' site - thoughts?