From 46cb2910eb681791f23c6c85bde863136931c9d5 Mon Sep 17 00:00:00 2001 From: Pavel Loginov Date: Mon, 18 Apr 2022 16:24:13 +0300 Subject: [PATCH] v6.0.0.0 Changelog: https://roxy-wi.org/changelog.py#6 --- inc/ha.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/inc/ha.js b/inc/ha.js index a97c90b8..6e4a76ed 100644 --- a/inc/ha.js +++ b/inc/ha.js @@ -323,6 +323,14 @@ function create_slave_keepalived(hap, nginx, syn_flood) { } else if (hap == '1' && nginx == '1') { var progress_value = '50'; } + var haproxy_docker = 0; + var nginx_docker = 0; + if ($('#hap_docker').is(':checked')) { + haproxy_docker = '1'; + } + if ($('#nginx_docker').is(':checked')) { + nginx_docker = '1'; + } $.ajax( { url: "options.py", data: { @@ -350,10 +358,10 @@ function create_slave_keepalived(hap, nginx, syn_flood) { toastr.info(data); } if (hap === '1') { - create_keep_alived_hap(nginx, 'slave', docker); + create_keep_alived_hap(nginx, 'slave', haproxy_docker); } if (hap == '0' && nginx == '1') { - create_keep_alived_nginx('slave', docker); + create_keep_alived_nginx('slave', nginx_docker); } } } );