236Related commandsdisplay portal mac-trigger-servercaptive-bypass enableUse captive-bypass enable to enable the captive-bypass feature.Use undo captive-bypass enable to disable the captive-bypass feature.Syntaxcaptive-bypass [ android | ios [ optimize ] ] enableundo captive-bypass [ android | ios [ optimize ] ] enableDefaultThe captive-bypass feature is disabled. The device automatically pushes the portal authenticationpage to the iOS devices and some Android devices when they are connected to the network.ViewsPortal Web server viewPredefined user rolesnetwork-adminParametersandroid: Enables the captive-bypass feature for Android users.ios: Enables the captive-bypass feature for iOS users.optimize: Enables the optimized captive-bypass feature.Usage guidelinesWith the captive-bypass feature enabled, the device does not automatically push the portalauthentication page to iOS devices and some Android devices when they are connected to thenetwork. The device pushes the portal authentication page only when the user accesses the Internetby using a browser.The optimized captive-bypass feature applies only to iOS mobile devices. The device automaticallypushes the portal authentication page to iOS mobile devices when they are connected to thenetwork. Users can press the home button to return to the desktop, and the Wi-Fi connection is notdisabled.You can repeat this command to enable the captive-bypass feature for both Android and iOS users.If you do not specify any parameters, this command enables the captive-bypass feature for bothAndroid and iOS users.Examples# Enable the captive-bypass feature. system-view[Sysname] portal web-server wbs[Sysname-portal-websvr-wbs] captive-bypass enable# Enable the optimized captive-bypass feature for iOS users. system-view[Sysname] portal web-server wbs[Sysname-portal-websvr-wbs] captive-bypass ios optimize enable# Enable the captive-bypass feature for Android users. system-view