mirror of
https://github.com/wgh136/pixes.git
synced 2025-09-27 04:57:23 +00:00
fix proxy
This commit is contained in:
@@ -135,7 +135,7 @@ class _ProxyHttpOverrides extends HttpOverrides {
|
|||||||
if(!App.isLinux) {
|
if(!App.isLinux) {
|
||||||
var channel = const MethodChannel("pixes/proxy");
|
var channel = const MethodChannel("pixes/proxy");
|
||||||
channel.invokeMethod("getProxy").then((value) {
|
channel.invokeMethod("getProxy").then((value) {
|
||||||
if(value == "No proxy"){
|
if(value.toString().toLowerCase() == "no proxy"){
|
||||||
proxy = "DIRECT";
|
proxy = "DIRECT";
|
||||||
} else {
|
} else {
|
||||||
if(proxy.contains("https")){
|
if(proxy.contains("https")){
|
||||||
|
Reference in New Issue
Block a user