I believe it was The Peace War, but I could be mistaken.
Seems a bit more realistic than a self-guided or self-vectoring bullet.
Remington makes a scope/rifle combo that does that now.
Was that book maybe Candle by John Barnes? There’s mention of that during some of the characters discussion of their time in the meme wars.