Fix connection on desktop

This commit is contained in:
problematicconsumer
2024-02-16 19:24:34 +03:30
parent debb07f6d9
commit 7f32682c59

View File

@@ -118,10 +118,10 @@ class FFISingboxService with InfraLogger implements SingboxService {
@override
TaskEither<String, Unit> changeOptions(SingboxConfigOption options) {
final json = options.toJson();
return TaskEither(
() => CombineWorker().execute(
() {
final json = options.toJson();
final err = _box
.changeConfigOptions(json.toNativeUtf8().cast())
.cast<Utf8>()