bundles/wireguard: disable health_checks if auto_connection is false
This commit is contained in:
parent
458606649e
commit
a09b5b98ca
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue