fix proxy

This commit is contained in:
wgh19
2024-05-15 21:05:52 +08:00
parent 55d87c0179
commit 015ea33a5e

View File

@@ -135,7 +135,7 @@ class _ProxyHttpOverrides extends HttpOverrides {
if(!App.isLinux) {
var channel = const MethodChannel("pixes/proxy");
channel.invokeMethod("getProxy").then((value) {
if(value == "No proxy"){
if(value.toString().toLowerCase() == "no proxy"){
proxy = "DIRECT";
} else {
if(proxy.contains("https")){