mirror of https://github.com/BTCPrivate/z-nomp.git
Merge pull request #178 from Elbandi/master
Bind website listener to host
This commit is contained in:
commit
870e6dc628
|
@ -11,6 +11,7 @@
|
||||||
|
|
||||||
"website": {
|
"website": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
|
"host": "0.0.0.0",
|
||||||
"port": 80,
|
"port": 80,
|
||||||
"stratumHost": "cryppit.com",
|
"stratumHost": "cryppit.com",
|
||||||
"stats": {
|
"stats": {
|
||||||
|
|
|
@ -275,12 +275,12 @@ module.exports = function(logger){
|
||||||
});
|
});
|
||||||
|
|
||||||
try {
|
try {
|
||||||
app.listen(portalConfig.website.port, function () {
|
app.listen(portalConfig.website.port, portalConfig.website.host, function () {
|
||||||
logger.debug(logSystem, 'Server', 'Website started on port ' + portalConfig.website.port);
|
logger.debug(logSystem, 'Server', 'Website started on ' + portalConfig.website.host + ':' + portalConfig.website.port);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
catch(e){
|
catch(e){
|
||||||
logger.error(logSystem, 'Server', 'Could not start website on port ' + portalConfig.website.port
|
logger.error(logSystem, 'Server', 'Could not start website on ' + portalConfig.website.host + ':' + portalConfig.website.port
|
||||||
+ ' - its either in use or you do not have permission');
|
+ ' - its either in use or you do not have permission');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue