Sen. John McCain took some veiled shots at President Trump over the weekend — slamming high-income draft dodgers for using their wealth to avoid serving in the Vietnam War.

“One aspect of the conflict, by the way, that I will never, ever countenance is that we drafted the lowest income level of America and the highest income level found a doctor that would say that they had a bone spur,” the Arizona lawmaker told C-SPAN3 in an interview that aired Sunday.

“That is wrong. That is wrong,” he said. “If we’re going to ask every American to serve, every American should serve.”

McCain, a Republican, didn’t actually name Trump — but the “bone spur” reference appeared to be a direct jab.

The president received several draft deferments during the war, including one in 1968 for bone spurs in his heels.

McCain’s comments come as tensions between him and the commander-in-chief continue to escalate.

The Vietnam war hero has spent the past week criticizing the president and his own party. He blasted “half-baked, spurious nationalism” in a speech last Monday, sparking a brief war of words between the two.

“I’ve faced greater challenges than this,” McCain told reporters the next day, referencing his time in a POW camp, after being threatened by Trump.

The 81-year-old, who was diagnosed with brain cancer this summer, spent more than two decades in the Navy, serving as a fighter pilot during Vietnam.

Trump has previously attacked him for voting against a GOP bill to repeal and replace ObamaCare. He once even went so far as to disparage McCain’s status.

“He’s not a war hero,” Trump said in July 2015 while on the campaign trail. “I like people who weren’t captured.”

McCain’s interview with C-SPAN3 aired Sunday during an episode of “American History TV.”