wg-client-status.sh aktualisiert

This commit is contained in:
2026-03-24 22:56:33 +01:00
parent 5480b31823
commit ceb8ad6583

View File

@@ -17,7 +17,7 @@ CURL=$(which curl || echo "/usr/bin/curl")
# "sudo" ist oft nötig, wenn das Script als normaler User im Cron läuft! # "sudo" ist oft nötig, wenn das Script als normaler User im Cron läuft!
$NETCLIENT peers | grep -E "vpn|mdvpn" | while read -r line; do $NETCLIENT peers | grep -E "vpn|mdvpn" | while read -r line; do
# Spalte 4: Name, Spalte 7: Handshake (basiert auf deiner Diagnose) # Spalte 4: Name, Spalte 7: Handshake
CLIENT_RAW=$(echo "$line" | awk -F'|' '{print $4}' | xargs) CLIENT_RAW=$(echo "$line" | awk -F'|' '{print $4}' | xargs)
HANDSHAKE=$(echo "$line" | awk -F'|' '{print $7}' | xargs) HANDSHAKE=$(echo "$line" | awk -F'|' '{print $7}' | xargs)