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 <noreply@anthropic.com>
This commit is contained in:
@@ -7,7 +7,7 @@ class TestConfiguration {
|
|||||||
final int parallelStreams;
|
final int parallelStreams;
|
||||||
|
|
||||||
const TestConfiguration({
|
const TestConfiguration({
|
||||||
this.server = 'iperf.es.net',
|
this.server = 'speedtest.uztelecom.uz',
|
||||||
this.port = 5201,
|
this.port = 5201,
|
||||||
this.duration = const Duration(seconds: 10),
|
this.duration = const Duration(seconds: 10),
|
||||||
this.interval = 1,
|
this.interval = 1,
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ import 'package:iperf3gui/domain/services/iperf3_runner.dart';
|
|||||||
|
|
||||||
/// Test parameters, supplied at build time with --dart-define.
|
/// Test parameters, supplied at build time with --dart-define.
|
||||||
const String _server = String.fromEnvironment('IPERF_SERVER',
|
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 _port = int.fromEnvironment('IPERF_PORT', defaultValue: 5201);
|
||||||
const int _seconds = int.fromEnvironment('IPERF_SECONDS', defaultValue: 10);
|
const int _seconds = int.fromEnvironment('IPERF_SECONDS', defaultValue: 10);
|
||||||
const int _streams = int.fromEnvironment('IPERF_STREAMS', defaultValue: 1);
|
const int _streams = int.fromEnvironment('IPERF_STREAMS', defaultValue: 1);
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ class _TestRunContentState extends State<_TestRunContent> {
|
|||||||
autocorrect: false,
|
autocorrect: false,
|
||||||
decoration: const InputDecoration(
|
decoration: const InputDecoration(
|
||||||
labelText: 'Server',
|
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),
|
const SizedBox(height: 12),
|
||||||
|
|||||||
Reference in New Issue
Block a user