Turning on VPN breaks screen sharing

Turning the VPN on and off disrupts the screen sharing feature. The issue resolves only after restarting the client.