diff --git a/plugins/wireguard/wireguard_ b/plugins/wireguard/wireguard_ index ad4fe56b..4e9470a4 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 | tr '\t' ';'); do + for line in $(wg show "$iface" dump | grep -v none | 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