bootstrap env var
This commit is contained in:
		| @@ -60,7 +60,7 @@ int getRemoteMaxStorageSpaceMb() { | |||||||
|  |  | ||||||
| Future<VeilidConfig> getDefaultVeilidConfig(String programName) async { | Future<VeilidConfig> getDefaultVeilidConfig(String programName) async { | ||||||
|   // ignore: do_not_use_environment |   // ignore: do_not_use_environment | ||||||
|   final bootstrap = const String.fromEnvironment('BOOTSTRAP').split(','); |   const bootstrap = String.fromEnvironment('BOOTSTRAP'); | ||||||
|   return VeilidConfig( |   return VeilidConfig( | ||||||
|     programName: programName, |     programName: programName, | ||||||
|     namespace: '', |     namespace: '', | ||||||
| @@ -100,7 +100,7 @@ Future<VeilidConfig> getDefaultVeilidConfig(String programName) async { | |||||||
|         nodeId: [], |         nodeId: [], | ||||||
|         nodeIdSecret: [], |         nodeIdSecret: [], | ||||||
|         bootstrap: bootstrap.isNotEmpty |         bootstrap: bootstrap.isNotEmpty | ||||||
|             ? bootstrap |             ? bootstrap.split(',') | ||||||
|             : (kIsWeb |             : (kIsWeb | ||||||
|                 ? ['ws://bootstrap.veilid.net:5150/ws'] |                 ? ['ws://bootstrap.veilid.net:5150/ws'] | ||||||
|                 : ['bootstrap.veilid.net']), |                 : ['bootstrap.veilid.net']), | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user