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