Try Client profile :
Disable Captive Portal Detection: In the Secure Client Profile Editor, navigate to the Preferences section ,Set the DisableCaptivePortalDetection parameter to true.
example XML File :
<DisableCaptivePortalDetection UserControllable="true">true</DisableCaptivePortalDetection>