From f77464763297788b69ceb76a5a53c6ed759de201 Mon Sep 17 00:00:00 2001 From: Jethro Grassie Date: Sun, 5 Jan 2020 19:48:37 -0500 Subject: [PATCH] allow disabling of the web UI altogether --- src/pool.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/pool.c b/src/pool.c index 913754b..da7817a 100644 --- a/src/pool.c +++ b/src/pool.c @@ -2803,7 +2803,7 @@ static void print_config() log_info("\nCONFIG:\n" " pool-port = %u\n" " pool-ssl-port = %u\n" - " webui-port=%u\n" + " webui-port= %u\n" " rpc-host = %s\n" " rpc-port = %u\n" " wallet-rpc-host = %s\n" @@ -2930,7 +2930,8 @@ cleanup(void) log_info("Performing cleanup"); if (listener_event) event_free(listener_event); - stop_web_ui(); + if (config.webui_port) + stop_web_ui(); if (signal_usr1) event_free(signal_usr1); if (timer_120s) @@ -3092,7 +3093,8 @@ int main(int argc, char **argv) uic.pool_ssl_port = config.pool_ssl_port; uic.allow_self_select = !config.disable_self_select; uic.payment_threshold = config.payment_threshold; - start_web_ui(&uic); + if (config.webui_port) + start_web_ui(&uic); run();