From fc9958dedb8354f3d23c0527ff520f2fbfd82149 Mon Sep 17 00:00:00 2001 From: Hiddify Date: Mon, 18 Mar 2024 10:57:05 +0100 Subject: [PATCH] fix: isssue with singbox 1.8.9 --- lib/singbox/service/ffi_singbox_service.dart | 8 ++++---- libcore | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/singbox/service/ffi_singbox_service.dart b/lib/singbox/service/ffi_singbox_service.dart index 61b72675..83583a0f 100644 --- a/lib/singbox/service/ffi_singbox_service.dart +++ b/lib/singbox/service/ffi_singbox_service.dart @@ -287,7 +287,7 @@ class FFISingboxService with InfraLogger implements SingboxService { logger.debug("stopping"); receiver.close(); _outboundsStream = null; - final err = _box.stopCommandClient(4).cast().toDartString(); + final err = _box.stopCommandClient(5).cast().toDartString(); if (err.isNotEmpty) { _logger.error("error stopping group client"); } @@ -311,7 +311,7 @@ class FFISingboxService with InfraLogger implements SingboxService { try { final err = _box - .startCommandClient(4, receiver.sendPort.nativePort) + .startCommandClient(5, receiver.sendPort.nativePort) .cast() .toDartString(); if (err.isNotEmpty) { @@ -334,7 +334,7 @@ class FFISingboxService with InfraLogger implements SingboxService { onCancel: (_) { logger.debug("stopping"); receiver.close(); - final err = _box.stopCommandClient(12).cast().toDartString(); + final err = _box.stopCommandClient(13).cast().toDartString(); if (err.isNotEmpty) { logger.error("failed stopping: $err"); } @@ -358,7 +358,7 @@ class FFISingboxService with InfraLogger implements SingboxService { try { final err = _box - .startCommandClient(12, receiver.sendPort.nativePort) + .startCommandClient(13, receiver.sendPort.nativePort) .cast() .toDartString(); if (err.isNotEmpty) { diff --git a/libcore b/libcore index aba59332..aab998fa 160000 --- a/libcore +++ b/libcore @@ -1 +1 @@ -Subproject commit aba593322e3f90f40ff050325d5acbb012dbb128 +Subproject commit aab998fae98d47abf8531e5ed8a736c62bd0f3dc