From dde2b1fca70452d1390bab4547925be64a7571b5 Mon Sep 17 00:00:00 2001 From: Hiddify Date: Thu, 25 Jan 2024 23:27:39 +0100 Subject: [PATCH] speed up ping --- lib/features/config_option/model/config_option_entity.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/features/config_option/model/config_option_entity.dart b/lib/features/config_option/model/config_option_entity.dart index e19fe3c4..b3c3eacc 100644 --- a/lib/features/config_option/model/config_option_entity.dart +++ b/lib/features/config_option/model/config_option_entity.dart @@ -21,7 +21,7 @@ class ConfigOptionEntity with _$ConfigOptionEntity { @Default(LogLevel.warn) LogLevel logLevel, @Default(false) bool resolveDestination, @Default(IPv6Mode.disable) IPv6Mode ipv6Mode, - @Default("tcp://8.8.8.8") String remoteDnsAddress, + @Default("udp://8.8.8.8") String remoteDnsAddress, @Default(DomainStrategy.auto) DomainStrategy remoteDnsDomainStrategy, @Default("8.8.8.8") String directDnsAddress, @Default(DomainStrategy.auto) DomainStrategy directDnsDomainStrategy, @@ -30,7 +30,7 @@ class ConfigOptionEntity with _$ConfigOptionEntity { @Default(TunImplementation.mixed) TunImplementation tunImplementation, @Default(9000) int mtu, @Default(true) bool strictRoute, - @Default("https://cp.cloudflare.com/") String connectionTestUrl, + @Default("http://cp.cloudflare.com/") String connectionTestUrl, @IntervalInSecondsConverter() @Default(Duration(minutes: 10)) Duration urlTestInterval,