From a0d90fa09af527e8e52b16c5cb3b399db8a85bf6 Mon Sep 17 00:00:00 2001 From: Christien Rioux Date: Tue, 22 Aug 2023 14:40:31 -0400 Subject: [PATCH] bootstrap env var --- veilid-flutter/lib/default_config.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/veilid-flutter/lib/default_config.dart b/veilid-flutter/lib/default_config.dart index 65b3dbeb..2c495d74 100644 --- a/veilid-flutter/lib/default_config.dart +++ b/veilid-flutter/lib/default_config.dart @@ -60,7 +60,7 @@ int getRemoteMaxStorageSpaceMb() { Future getDefaultVeilidConfig(String programName) async { // ignore: do_not_use_environment - final bootstrap = const String.fromEnvironment('BOOTSTRAP').split(','); + const bootstrap = String.fromEnvironment('BOOTSTRAP'); return VeilidConfig( programName: programName, namespace: '', @@ -100,7 +100,7 @@ Future getDefaultVeilidConfig(String programName) async { nodeId: [], nodeIdSecret: [], bootstrap: bootstrap.isNotEmpty - ? bootstrap + ? bootstrap.split(',') : (kIsWeb ? ['ws://bootstrap.veilid.net:5150/ws'] : ['bootstrap.veilid.net']),