Fix connection on desktop
This commit is contained in:
@@ -118,10 +118,10 @@ class FFISingboxService with InfraLogger implements SingboxService {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
TaskEither<String, Unit> changeOptions(SingboxConfigOption options) {
|
TaskEither<String, Unit> changeOptions(SingboxConfigOption options) {
|
||||||
|
final json = options.toJson();
|
||||||
return TaskEither(
|
return TaskEither(
|
||||||
() => CombineWorker().execute(
|
() => CombineWorker().execute(
|
||||||
() {
|
() {
|
||||||
final json = options.toJson();
|
|
||||||
final err = _box
|
final err = _box
|
||||||
.changeConfigOptions(json.toNativeUtf8().cast())
|
.changeConfigOptions(json.toNativeUtf8().cast())
|
||||||
.cast<Utf8>()
|
.cast<Utf8>()
|
||||||
|
|||||||
Reference in New Issue
Block a user