Merge pull request #993 from bendiy/bind_address
authorTravis Webb <travis@traviswebb.com>
Sun, 3 Nov 2013 20:53:29 +0000 (12:53 -0800)
committerTravis Webb <travis@traviswebb.com>
Sun, 3 Nov 2013 20:53:29 +0000 (12:53 -0800)
Use config's bindAddress.

node-datasource/main.js

index 2a7ca0a..48109d9 100755 (executable)
@@ -415,8 +415,9 @@ redirectServer.listen(X.options.datasource.redirectPort);
 // TODO - Active browser sessions can make calls to this server when it hasn't fully started.
 // That can cause it to crash at startup.
 // Need a way to get everything loaded BEFORE we start listening.  Might just move this to the end...
-io = socketio.listen(server.listen(X.options.datasource.port));
+io = socketio.listen(server.listen(X.options.datasource.port, X.options.datasource.bindAddress));
 
+X.log("Server listening at: ", X.options.datasource.bindAddress);
 X.log("node-datasource started on port: ", X.options.datasource.port);
 X.log("redirectServer started on port: ", X.options.datasource.redirectPort);
 X.log("Databases accessible from this server: \n", JSON.stringify(X.options.datasource.databases, null, 2));