captive portal fix for IOS