Fix issue with check internet not working with ssl urls.
more info