Changeset View
Changeset View
Standalone View
Standalone View
support/aphlict/server/aphlict_server.js
| Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Lines | if (process.getuid() !== 0) { | ||||
| process.exit(1); | process.exit(1); | ||||
| } | } | ||||
| var net = require('net'); | var net = require('net'); | ||||
| var http = require('http'); | var http = require('http'); | ||||
| var url = require('url'); | var url = require('url'); | ||||
| process.on('uncaughtException', function(err) { | process.on('uncaughtException', function(err) { | ||||
| debug.log("\n<<< UNCAUGHT EXCEPTION! >>>\n\n" + err); | debug.log("\n<<< UNCAUGHT EXCEPTION! >>>\n" + err.stack); | ||||
| process.exit(1); | process.exit(1); | ||||
| }); | }); | ||||
| var flash_server = new JX.AphlictFlashPolicyServer() | var flash_server = new JX.AphlictFlashPolicyServer() | ||||
| .setDebugLog(debug) | .setDebugLog(debug) | ||||
| .setAccessPort(config.port) | .setAccessPort(config.port) | ||||
| .start(); | .start(); | ||||
| ▲ Show 20 Lines • Show All 109 Lines • Show Last 20 Lines | |||||