Check If a WireGuard Connection Is Up

from blog Blog on hjr265.me, | ↗ original
I have several scripts and automation on my primary computer at home that can run when connected to the local area network of my workspace through a WireGuard connection. These scripts are for routine tasks for my servers at my workspace, like backing them up to remote storage. When the WireGuard connection is not running, the scripts fail at...