
whitelist.knownRemotes = [
    '207.97.227.253',
    '50.57.128.197',
    '108.171.174.178'
];

function whitelist( options )
{
    options = options || {};

    var ips = options.ips || [];

    if( !ips.length || options.known ) {
        ips.concat( whitelist.knownRemotes );
    }

    return function( req, res, next )
    {
        var err;

        if( ips.indexOf( req.socket.remoteAddress ) < 0 ) {
            err = new Error( '[bait] whitelist: Remote is not whitelisted (' + req.socket.remoteAddress + ').' );
            err.status = 403;
        }

        next( err );
    };
};

module.exports = whitelist;

@@ -276,24 +276,90 @@
 s );%0A    %7D%0A%0A
+    if( options.local ) %7B%0A        ips.push( '127.0.0.1' );%0A    %7D%0A%0A
     return f

Add a 'local' option which whitelist 127.0.0.1.