|
@@ -40,16 +40,16 @@ class WlBaseHelp {
|
|
|
|
|
|
// 新增:启用代理
|
|
|
Future<void> startProxy(int port) async {
|
|
|
- await _channel.invokeMethod('startProxy', {'port': port});
|
|
|
+ await WlBaseHelpPlatform.instance.startProxy(port);
|
|
|
}
|
|
|
|
|
|
// 新增:禁用代理
|
|
|
Future<void> stopProxy() async {
|
|
|
- await _channel.invokeMethod('stopProxy');
|
|
|
+ await WlBaseHelpPlatform.instance.stopProxy();
|
|
|
}
|
|
|
|
|
|
// 新增:检测代理是否启用
|
|
|
Future<bool> isProxyEnabled() async {
|
|
|
- return await _channel.invokeMethod('isProxyEnabled');
|
|
|
+ return WlBaseHelpPlatform.instance.isProxyEnabled();
|
|
|
}
|
|
|
}
|