From 02476c92b2f0cd50cf7743a693daf2aa356bcbbc Mon Sep 17 00:00:00 2001 From: pimlie Date: Sat, 19 Apr 2025 14:25:57 +0200 Subject: [PATCH] Revert "Merge pull request #1487 from droscy/fix/wireguard/none" This reverts commit 0016cfdfa62a5f2a8c3a5f0f3d1c9893845973cb, reversing changes made to 8184ce0871bffc3d94b6a3a71c5254fe55ec7faa. --- plugins/wireguard/wireguard_ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/wireguard/wireguard_ b/plugins/wireguard/wireguard_ index 4e9470a4..ad4fe56b 100755 --- a/plugins/wireguard/wireguard_ +++ b/plugins/wireguard/wireguard_ @@ -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