From bf34bada92ce0345c26f009c86d46e53d7340ffb Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Mon, 31 Mar 2025 15:51:18 -0300 Subject: [PATCH] Fix issue with reload config. --- wireguard_tools/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wireguard_tools/views.py b/wireguard_tools/views.py index e80e1cc..875b1b7 100644 --- a/wireguard_tools/views.py +++ b/wireguard_tools/views.py @@ -234,8 +234,7 @@ def restart_wireguard_interfaces(request): filtered_lines = [] for line in lines: stripped_line = line.strip() - if stripped_line.startswith("Address") or stripped_line.startswith("ListenPort") \ - or stripped_line.startswith("PostUp") or stripped_line.startswith("PostDown"): + if stripped_line.startswith("Address") or stripped_line.startswith("PostUp") or stripped_line.startswith("PostDown"): continue filtered_lines.append(line) @@ -269,6 +268,7 @@ def restart_wireguard_interfaces(request): if interface_count > 0 and error_count == 0: if mode == 'reload': + messages.warning(request, "WARNING|Please note that the interface was reloaded, not restarted. Double-check if the the peers are working as expected. If you find any issues, please report them.") verbose_mode = 'reloaded' else: verbose_mode = 'restarted'