Skip to content

Commit

Permalink
Honour configuration to disable flash policy server
Browse files Browse the repository at this point in the history
  • Loading branch information
doozr committed Aug 6, 2012
1 parent 48ad0d3 commit d32a848
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/transports/flashsocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ FlashSocket.prototype.name = 'flashsocket';
FlashSocket.init = function (manager) {
var server;
function create () {

// Drop out immediately if the user has
// disabled the flash policy server
if (!manager.get('flash policy server')) {
return;
}

server = require('policyfile').createServer({
log: function(msg){
manager.log.info(msg.toLowerCase());
Expand Down

0 comments on commit d32a848

Please sign in to comment.