#v2ex settings put global captive_portal_http_url http://captive.v2ex.co/generate_204 settings put global captive_portal_https_url https://captive.v2ex.co/generate_204 #chrome settings put global captive_portal_http_url http://www.gstatic.com/generate_204 settings put global captive_portal_https_url https://www.gstatic.com/generate_204 #google settings put global captive_portal_http_url http://www.google.cn/generate_204 settings put global captive_portal_https_url https://www.google.cn/generate_204 # 获取当前captive_portal_server settings get global captive_portal_http_url settings get global captive_portal_https_url
URL:https://www.v2ex.com/t/303889
最近闲来无事,将闲置的小米3刷了lineage 14.1的包,顺便部署了一个linux系统玩玩,部署过程中网络总是挂掉,猜测是因为wifi验证的原因,因为默认wifi连通后会访问Captive Portal Server,但因为这个地址在国内不存在所以android判定网络不通导致验证失败,于是指定了一个新的地址,问题解决。这里有一篇博客进行解释