Not connecting to the internet

Ok, so I've been running Catalina for about a month now. An I've noticed a bug. Wondering if anyone knows how to fix it.


Bug: My internet stops working when it goes into sleep mode or lock screen. It doesn't happen all the time but its happening a lot. If I use other devises to try see if my connection is still up, it is. If I look at all the lights and look at my link on the router they are on. If I look at my network info status, it's connected.


I've tried with both wifi and ethernet. Both with the same result. I've removed the connection and tried to re add it. Interestingly, it comes up with the same connection, represented twice in my available networks. ones connected one isn't.


Which tells me it's a bug in network setting.


The only solution I've found is to do a hard reboot. Not ideal, but it connects it back again right away.


Anyone have a fix or even the same issue?


Specs:

macOS Catalina

2.6 GHz Intel Core i7

16 GB 2133 MHz LPDDR3

Radeon Pro 450 2 GB

Intel HD Graphics 530 1536 MB