summaryrefslogtreecommitdiffstats
path: root/xmrstak/jconf.cpp
diff options
context:
space:
mode:
authorfireice-uk <fireice-uk@users.noreply.github.com>2017-12-25 14:54:30 +0000
committerfireice-uk <fireice-uk@users.noreply.github.com>2017-12-25 15:23:43 +0000
commit9201a73269ad057d93d7c850aa68336b264f5468 (patch)
tree153a7c093eb40c1bab3816a572a979b5551ed822 /xmrstak/jconf.cpp
parent52c305796127258f29d119843e86906541ea27b3 (diff)
downloadxmr-stak-9201a73269ad057d93d7c850aa68336b264f5468.zip
xmr-stak-9201a73269ad057d93d7c850aa68336b264f5468.tar.gz
Add option to enable web interface from cli
Diffstat (limited to 'xmrstak/jconf.cpp')
-rw-r--r--xmrstak/jconf.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/xmrstak/jconf.cpp b/xmrstak/jconf.cpp
index f279f52..a1db451 100644
--- a/xmrstak/jconf.cpp
+++ b/xmrstak/jconf.cpp
@@ -242,7 +242,10 @@ uint64_t jconf::GetAutohashTime()
uint16_t jconf::GetHttpdPort()
{
- return prv->configValues[iHttpdPort]->GetUint();
+ if(xmrstak::params::inst().httpd_port == xmrstak::params::httpd_port_unset)
+ return prv->configValues[iHttpdPort]->GetUint();
+ else
+ return uint16_t(xmrstak::params::inst().httpd_port);
}
const char* jconf::GetHttpUsername()
OpenPOWER on IntegriCloud