Anyone recall what the Windows 10 setting is that makes one's computer vulnerable to piggy backing?

I remember reading something that windows 10 was set by default to allow other computers to connect to it thus allowing those connecting computers to access ones router/network

But I cant remember the fix for it or the setting to change. Or has this since been fixed by Microsoft updates?