new: add more warp modes, handle both ipv4 and ipv6 in wireguard, add customizable size and more

This commit is contained in:
hiddify-com
2024-07-18 01:03:15 +02:00
parent 9c424eac9a
commit 1cab9ef3a9
8 changed files with 101 additions and 48 deletions

View File

@@ -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),