bundles/wireguard: disable health_checks if auto_connection is false

This commit is contained in:
Franzi 2023-09-24 18:57:27 +02:00
parent 458606649e
commit a09b5b98ca
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -303,6 +303,7 @@ def health_checks(metadata):
for peer, config in metadata.get('wireguard/peers', {}).items():
if (
config.get('exclude_from_monitoring', False)
or not config.get('auto_connection', True)
or 'endpoint' not in config
):
continue