allow disabling of the web UI altogether

This commit is contained in:
Jethro Grassie 2020-01-05 19:48:37 -05:00
parent f987fd4aa9
commit f774647632
No known key found for this signature in database
GPG Key ID: DE8ED755616565BB
1 changed files with 5 additions and 3 deletions

View File

@ -2930,6 +2930,7 @@ cleanup(void)
log_info("Performing cleanup");
if (listener_event)
event_free(listener_event);
if (config.webui_port)
stop_web_ui();
if (signal_usr1)
event_free(signal_usr1);
@ -3092,6 +3093,7 @@ 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;
if (config.webui_port)
start_web_ui(&uic);
run();