diff --git a/support/aphlict/server/aphlict_launcher.php b/support/aphlict/server/aphlict_launcher.php index 80eceb8e34..c9cb6281d9 100755 --- a/support/aphlict/server/aphlict_launcher.php +++ b/support/aphlict/server/aphlict_launcher.php @@ -59,6 +59,7 @@ $foreground = $args->getArg('foreground'); $server_argv = array(); $server_argv[] = csprintf('--port=%s', $client_uri->getPort()); $server_argv[] = csprintf('--admin=%s', $server_uri->getPort()); +$server_argv[] = csprintf('--host=%s', $server_uri->getDomain()); if ($user) { $server_argv[] = csprintf('--user=%s', $user); diff --git a/support/aphlict/server/aphlict_server.js b/support/aphlict/server/aphlict_server.js index 26be15dc45..46bbacdd98 100755 --- a/support/aphlict/server/aphlict_server.js +++ b/support/aphlict/server/aphlict_server.js @@ -3,7 +3,7 @@ * * sudo node aphlict_server.js --user=aphlict * - * You can also specify `port`, `admin` and `log`. + * You can also specify `port`, `admin`, `host` and `log`. */ var config = parse_command_line_arguments(process.argv); @@ -12,6 +12,7 @@ function parse_command_line_arguments(argv) { var config = { port : 22280, admin : 22281, + host : '127.0.0.1', user : null, log: '/var/log/aphlict.log' }; @@ -200,7 +201,7 @@ var receive_server = http.createServer(function(request, response) { response.end(); } -}).listen(config.admin, '127.0.0.1'); +}).listen(config.admin, config.host); function broadcast(data) { for (var client_id in clients) {