Fixes bug with LAN connectivity check