fix: some bugs in configs and fix core bugs
This commit is contained in:
@@ -45,19 +45,19 @@ abstract class ConfigOptions {
|
||||
|
||||
static final resolveDestination = PreferencesNotifier.create<bool, bool>(
|
||||
"resolve-destination",
|
||||
true,
|
||||
false,
|
||||
);
|
||||
|
||||
static final ipv6Mode = PreferencesNotifier.create<IPv6Mode, String>(
|
||||
"ipv6-mode",
|
||||
IPv6Mode.enable,
|
||||
IPv6Mode.disable,
|
||||
mapFrom: (value) => IPv6Mode.values.firstWhere((e) => e.key == value),
|
||||
mapTo: (value) => value.key,
|
||||
);
|
||||
|
||||
static final remoteDnsAddress = PreferencesNotifier.create<String, String>(
|
||||
"remote-dns-address",
|
||||
"udp://1.1.1.1",
|
||||
"https://sky.rethinkdns.com/dns-query",
|
||||
validator: (value) => value.isNotBlank,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user