1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

Revert "Merge pull request #1487 from droscy/fix/wireguard/none"

This reverts commit 0016cfdfa6, reversing
changes made to 8184ce0871.
This commit is contained in:
pimlie 2025-04-19 14:25:57 +02:00
parent d91bebd144
commit 02476c92b2

View file

@ -80,7 +80,7 @@ function wg_peers {
# Subsequent lines are printed for each peer and contain in order separated
# by tab: public-key, preshared-key, endpoint, allowed-ips, latest-handshake,
# transfer-rx, transfer-tx, persistent-keepalive
for line in $(wg show "$iface" dump | grep -v none | tr '\t' ';'); do
for line in $(wg show "$iface" dump | tr '\t' ';'); do
column_count=$(awk -F';' '{print NF}' <<< "$line")
if [ "$column_count" -ne 8 ]; then
# First line of dump contains interface info, ignore this line