I still find rather strange any claim that war is illegal. Certainly every war is illegal from *someone’s* perspective? This is why every war is called a “rebellion” or “invasion” or “uprising” by one side of the conflict. It just happens that the winners get to decide what to call it in the history books.
I suppose that if one believed that the UN actually served a purpose in line with its charter, this claim would make sense.