new: add more warp modes, handle both ipv4 and ipv6 in wireguard, add customizable size and more
This commit is contained in:
@@ -113,6 +113,21 @@ class WarpOptionsTiles extends HookConsumerWidget {
|
||||
presentValue: (value) => value.present(t),
|
||||
formatInputValue: (value) => value.format(),
|
||||
),
|
||||
ValuePreferenceWidget(
|
||||
value: ref.watch(ConfigOptions.warpNoiseMode),
|
||||
preferences: ref.watch(ConfigOptions.warpNoiseMode.notifier),
|
||||
enabled: canChangeOptions,
|
||||
title: t.config.warpNoiseMode,
|
||||
),
|
||||
ValuePreferenceWidget(
|
||||
value: ref.watch(ConfigOptions.warpNoiseSize),
|
||||
preferences: ref.watch(ConfigOptions.warpNoiseSize.notifier),
|
||||
enabled: canChangeOptions,
|
||||
title: t.config.warpNoiseSize,
|
||||
inputToValue: (input) => OptionalRange.tryParse(input, allowEmpty: true),
|
||||
presentValue: (value) => value.present(t),
|
||||
formatInputValue: (value) => value.format(),
|
||||
),
|
||||
ValuePreferenceWidget(
|
||||
value: ref.watch(ConfigOptions.warpNoiseDelay),
|
||||
preferences: ref.watch(ConfigOptions.warpNoiseDelay.notifier),
|
||||
|
||||
Reference in New Issue
Block a user