From 895b9637459cd7c126dc4de1c80a2c242a4f598b Mon Sep 17 00:00:00 2001 From: Mikkeli Date: Wed, 26 Aug 2026 22:38:19 +0900 Subject: [PATCH] fix: restore speedtest.uztelecom.uz as the default server Consolidating the UI's seed values onto TestConfiguration's own defaults also silently changed the default target to iperf.es.net, which was not asked for. Sets it back in TestConfiguration, which is now the single definition the screen and the headless entry point both read. Co-Authored-By: Claude Opus 5 --- lib/domain/models/test_configuration.dart | 2 +- lib/main_headless.dart | 2 +- lib/ui/features/test_run/test_run_screen.dart | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/domain/models/test_configuration.dart b/lib/domain/models/test_configuration.dart index 5a9eb20..c4657d4 100644 --- a/lib/domain/models/test_configuration.dart +++ b/lib/domain/models/test_configuration.dart @@ -7,7 +7,7 @@ class TestConfiguration { final int parallelStreams; const TestConfiguration({ - this.server = 'iperf.es.net', + this.server = 'speedtest.uztelecom.uz', this.port = 5201, this.duration = const Duration(seconds: 10), this.interval = 1, diff --git a/lib/main_headless.dart b/lib/main_headless.dart index 143aedf..b3615c3 100644 --- a/lib/main_headless.dart +++ b/lib/main_headless.dart @@ -25,7 +25,7 @@ import 'package:iperf3gui/domain/services/iperf3_runner.dart'; /// Test parameters, supplied at build time with --dart-define. const String _server = String.fromEnvironment('IPERF_SERVER', - defaultValue: 'iperf.es.net'); + defaultValue: 'speedtest.uztelecom.uz'); const int _port = int.fromEnvironment('IPERF_PORT', defaultValue: 5201); const int _seconds = int.fromEnvironment('IPERF_SECONDS', defaultValue: 10); const int _streams = int.fromEnvironment('IPERF_STREAMS', defaultValue: 1); diff --git a/lib/ui/features/test_run/test_run_screen.dart b/lib/ui/features/test_run/test_run_screen.dart index 1b5e6aa..b1a82c0 100644 --- a/lib/ui/features/test_run/test_run_screen.dart +++ b/lib/ui/features/test_run/test_run_screen.dart @@ -110,7 +110,7 @@ class _TestRunContentState extends State<_TestRunContent> { autocorrect: false, decoration: const InputDecoration( labelText: 'Server', - hintText: 'e.g. iperf.es.net or 192.168.1.1', + hintText: 'e.g. speedtest.uztelecom.uz or 192.168.1.1', ), ), const SizedBox(height: 12),