From e6c50ae758db53aa7b6700128658f7493d7f8f26 Mon Sep 17 00:00:00 2001 From: Pavel Loginov Date: Tue, 7 Sep 2021 14:18:27 +0600 Subject: [PATCH] v5.2.5.0 Changelog: https://haproxy-wi.org/changelog.py#5_2_5 --- app/funct.py | 3 ++- app/templates/add.html | 22 +++++++++++----------- app/templates/include/add_proxy.html | 4 ++-- 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/app/funct.py b/app/funct.py index 4e9ca33b..984d5a55 100644 --- a/app/funct.py +++ b/app/funct.py @@ -1409,4 +1409,5 @@ def is_service_active(server_ip: str, service_name: str): cmd = ['systemctl is-active ' + service_name] out = ssh_command(server_ip, cmd) - return True if 'active' in out else False + out = out.strip() + return True if 'active' == out else False diff --git a/app/templates/add.html b/app/templates/add.html index f86295af..30b2914d 100644 --- a/app/templates/add.html +++ b/app/templates/add.html @@ -26,8 +26,8 @@
  • Frontend
  • Backend
  • SSL certificates
  • -
  • Options
  • -
  • Servers
  • +
  • Options
  • +
  • Servers
  • Userlists
  • Peers
  • Lists
  • @@ -791,10 +791,10 @@
    -
    +
    In this section you can create, edit and delete options with given parameters. And after use them as autocomplete in the "Add" sections
    -
    +
    How to use pre-saved option you can see in this video @@ -846,10 +846,10 @@
    -
    +
    In this section you can create, edit and delete servers. And after use them as autocomplete in the "Add" sections
    -