Fix android system proxy not effective

Add macos arm64
This commit is contained in:
chen08209
2024-07-17 17:02:25 +08:00
parent 82be4cc45f
commit 3bc3172723
19 changed files with 187 additions and 86 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ class Proxy extends ProxyPlatform {
static String url = "127.0.0.1";
@override
Future<bool?> startProxy(int port, String? args) async {
Future<bool?> startProxy(int port) async {
bool? isStart = false;
switch (Platform.operatingSystem) {
case "macos":
@@ -19,7 +19,7 @@ class Proxy extends ProxyPlatform {
isStart = await _startProxyWithLinux(port);
break;
case "windows":
isStart = await ProxyPlatform.instance.startProxy(port, args);
isStart = await ProxyPlatform.instance.startProxy(port);
break;
}
if (isStart == true) {
+1 -1
View File
@@ -12,7 +12,7 @@ class MethodChannelProxy extends ProxyPlatform {
MethodChannelProxy();
@override
Future<bool?> startProxy(int port, String? args) async {
Future<bool?> startProxy(int port) async {
return await methodChannel.invokeMethod<bool>("StartProxy", {'port': port});
}
@@ -22,7 +22,7 @@ abstract class ProxyPlatform extends PlatformInterface {
DateTime? startTime;
Future<bool?> startProxy(int port, String? args) {
Future<bool?> startProxy(int port) {
throw UnimplementedError('startProxy() has not been implemented.');
}