diff --git a/lib/fragments/dashboard/widgets/network_detection.dart b/lib/fragments/dashboard/widgets/network_detection.dart index 9fc8e0b..bec2d8a 100644 --- a/lib/fragments/dashboard/widgets/network_detection.dart +++ b/lib/fragments/dashboard/widgets/network_detection.dart @@ -59,7 +59,9 @@ class _NetworkDetectionState extends ConsumerState { final isStart = appState.runTime != null; if (_preIsStart == false && _preIsStart == isStart && - _networkDetectionState.value.ipInfo != null) return; + _networkDetectionState.value.ipInfo != null) { + return; + } _clearSetTimeoutTimer(); _networkDetectionState.value = _networkDetectionState.value.copyWith( isTesting: true, diff --git a/lib/models/clash_config.dart b/lib/models/clash_config.dart index f8206c3..3f9d967 100644 --- a/lib/models/clash_config.dart +++ b/lib/models/clash_config.dart @@ -245,7 +245,7 @@ class GeoXUrl with _$GeoXUrl { ) String mmdb, @Default( - "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip.metadb", + "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/GeoLite2-ASN.mmdb", ) String asn, @Default( diff --git a/lib/models/generated/clash_config.freezed.dart b/lib/models/generated/clash_config.freezed.dart index 6a56501..8f9232a 100644 --- a/lib/models/generated/clash_config.freezed.dart +++ b/lib/models/generated/clash_config.freezed.dart @@ -1750,7 +1750,7 @@ class _$GeoXUrlImpl implements _GeoXUrl { {this.mmdb = "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip.metadb", this.asn = - "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip.metadb", + "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/GeoLite2-ASN.mmdb", this.geoip = "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip.dat", this.geosite = diff --git a/lib/models/generated/clash_config.g.dart b/lib/models/generated/clash_config.g.dart index ed21d8e..2be1de2 100644 --- a/lib/models/generated/clash_config.g.dart +++ b/lib/models/generated/clash_config.g.dart @@ -191,7 +191,7 @@ _$GeoXUrlImpl _$$GeoXUrlImplFromJson(Map json) => mmdb: json['mmdb'] as String? ?? "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip.metadb", asn: json['asn'] as String? ?? - "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip.metadb", + "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/GeoLite2-ASN.mmdb", geoip: json['geoip'] as String? ?? "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip.dat", geosite: json['geosite'] as String? ??