Yes, he wanted to insult the person. The word портянка is sometimes used in the Internet by Ukrainian nationalists to offend pro-Russian users.
> nationalists
No, not nationalists, just regular people who all wish that Russia finally ceases to exist.
Thank you! I found this wiki article and learned something new about foot protection today too.
https://ru.wikipedia.org/wiki/Портянки