root@wireguard:/etc/wireguard/wgctl# sed -n '/dest_display/,/accept_dest_row/p' \
  /etc/wireguard/wgctl/commands/activity.command.sh | head -20
        local dest_display
        local raw_suffix=""
        local resolved="${_DEST_RESOLVE_CACHE[$spec]:-${d_ip}:${d_port}/${d_proto}}"
        local dest_display="$resolved"
        if [[ "$show_ports" == "true" && "$resolved" != "${d_ip}:"* && "$resolved" != "${d_ip} "* ]]; then
          # Append dim raw IP:port — use printf to expand ANSI
          dest_display=$(printf "%s \033[2m(%s:%s)\033[0m" "$resolved" "$d_ip" "$d_port")
        fi
        # If resolved AND --ports: append dim "(ip:port)"
        if [[ "$show_ports" == "true" && "${_DEST_RESOLVE_CACHE[$spec]}" != "${d_ip}:"* ]]; then
          dest_display+=" \033[2m(${d_ip}:${d_port})\033[0m"
        fi
        ui::activity::accept_dest_row \
          "$dest_display" "$d_bytes_orig" "$d_bytes_reply" \
          "$d_count" "$drops_col" "$w_count"
      done
    }

  declare -gA _DEST_RESOLVE_CACHE=()
  local -a _dest_specs=()
root@wireguard:/etc/wireguard/wgctl#
