enable resolve-destination and ipv6 by default

This commit is contained in:
hiddify-com
2024-07-28 00:12:56 +02:00
parent 6dfde70ba4
commit 23eb7bdec1

View File

@@ -45,12 +45,12 @@ abstract class ConfigOptions {
static final resolveDestination = PreferencesNotifier.create<bool, bool>( static final resolveDestination = PreferencesNotifier.create<bool, bool>(
"resolve-destination", "resolve-destination",
false, true,
); );
static final ipv6Mode = PreferencesNotifier.create<IPv6Mode, String>( static final ipv6Mode = PreferencesNotifier.create<IPv6Mode, String>(
"ipv6-mode", "ipv6-mode",
IPv6Mode.disable, IPv6Mode.enable,
mapFrom: (value) => IPv6Mode.values.firstWhere((e) => e.key == value), mapFrom: (value) => IPv6Mode.values.firstWhere((e) => e.key == value),
mapTo: (value) => value.key, mapTo: (value) => value.key,
); );