Can't connect to game in League oif Legends

Hello,
So I just got a new computer and decided to get myself an Avast premium. Unfortunately after installing Avast I cannot play League Of Legends. I am able to access the client and go into champion select but after that I get an error that I cannot connect to server.

Please help

Set the Avast Firewall to private mode and reboot.