Added configurable server ports
This commit is contained in:
parent
0f7e0703d7
commit
e868b97c1a
12
main.js
12
main.js
|
@ -514,5 +514,15 @@ var server = net.createServer(function(socket)
|
|||
sock.logged_in = false;
|
||||
});
|
||||
|
||||
// Set the default port
|
||||
var port = 22068;
|
||||
|
||||
// Is port set
|
||||
if(settings.port)
|
||||
{
|
||||
// Set the specified port
|
||||
port = settings.port;
|
||||
}
|
||||
|
||||
// Listen for data
|
||||
server.listen(22068, '');
|
||||
server.listen(port, '');
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"encryption_key_size": 10,
|
||||
"register_on_fail": true
|
||||
"register_on_fail": true,
|
||||
"port": 22068
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue