|
@@ -394,11 +394,13 @@ class GlobalController extends GetxController {
|
|
|
// Process sysproxy = await Process.start(Files.assetsSysProxyWin.path,,mode: ProcessStartMode.inheritStdio);
|
|
|
// sysproxy.exitCode.then((code) => exitCode = code);
|
|
|
try {
|
|
|
- await Process.run(
|
|
|
+ var result = await Process.run(
|
|
|
Files.assetsSysProxyWin.path,
|
|
|
['global','127.0.0.1:$port',loa],
|
|
|
runInShell: true,
|
|
|
);
|
|
|
+ LogHelper().d(result.stderr);
|
|
|
+ LogHelper().d(result.stdout);
|
|
|
} on ProcessException catch (e) {
|
|
|
//.e('Failed to start $coreName: ${e.message}');
|
|
|
throw Exception('Failed to start sysproxy: ${e.message}');
|
|
@@ -440,11 +442,13 @@ class GlobalController extends GetxController {
|
|
|
Future<void> closeProxy() async {
|
|
|
// proxyManager.cleanSystemProxy();
|
|
|
try {
|
|
|
- await Process.run(
|
|
|
+ var result = await Process.run(
|
|
|
Files.assetsSysProxyWin.path,
|
|
|
['set','1','','',''],
|
|
|
runInShell: true,
|
|
|
);
|
|
|
+ LogHelper().d(result.stderr);
|
|
|
+ LogHelper().d(result.stdout);
|
|
|
} on ProcessException catch (e) {
|
|
|
//.e('Failed to start $coreName: ${e.message}');
|
|
|
throw Exception('Failed to start sysproxy: ${e.message}');
|