From 9c9df104bd804beaf989859f2df525a98df86d54 Mon Sep 17 00:00:00 2001 From: fireice-uk Date: Mon, 16 Jan 2017 00:59:05 +0000 Subject: Further httpd integration --- cli-miner.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'cli-miner.cpp') diff --git a/cli-miner.cpp b/cli-miner.cpp index 6014d33..bc7c2d6 100644 --- a/cli-miner.cpp +++ b/cli-miner.cpp @@ -70,10 +70,13 @@ int main(int argc, char *argv[]) return 0; } - if (!httpd::inst()->start_daemon()) + if(jconf::inst()->GetHttpdPort() != 0) { - win_exit(); - return 0; + if (!httpd::inst()->start_daemon()) + { + win_exit(); + return 0; + } } printer::inst()->print_str("-------------------------------------------------------------------\n"); -- cgit v1.1