File tree Expand file tree Collapse file tree
nym-vpn-desktop/src-tauri/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ use anyhow::Result;
33use futures:: channel:: oneshot:: Receiver as OneshotReceiver ;
44use futures:: StreamExt ;
55use nym_vpn_lib:: gateway_client:: { Config as GatewayClientConfig , EntryPoint , ExitPoint } ;
6+ use nym_vpn_lib:: nym_config:: defaults:: var_names:: { EXPLORER_API , NYM_API } ;
67use nym_vpn_lib:: nym_config:: OptionalSet ;
78use nym_vpn_lib:: { NymVpn , NymVpnExitError , NymVpnExitStatusMessage , StatusReceiver } ;
89use tauri:: Manager ;
@@ -155,7 +156,12 @@ pub async fn spawn_status_listener(
155156fn setup_gateway_client_config ( private_key : Option < & str > ) -> GatewayClientConfig {
156157 let mut config = GatewayClientConfig :: default ( )
157158 // Read in the environment variable NYM_API if it exists
158- . with_optional_env ( GatewayClientConfig :: with_custom_api_url, None , "NYM_API" ) ;
159+ . with_optional_env ( GatewayClientConfig :: with_custom_api_url, None , NYM_API )
160+ . with_optional_env (
161+ GatewayClientConfig :: with_custom_explorer_url,
162+ None ,
163+ EXPLORER_API ,
164+ ) ;
159165 info ! ( "Using nym-api: {}" , config. api_url( ) ) ;
160166
161167 if let Some ( key) = private_key {
You can’t perform that action at this time.
0 commit comments