From bc813da32d565c42c7531557f2ab1bf2efa7a580 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bogdan-=C8=98tefan=20Neac=C5=9Fu?= Date: Tue, 21 Nov 2023 14:36:48 +0000 Subject: [PATCH] Hardcode wg private IP --- common/client-core/src/client/base_client/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/client-core/src/client/base_client/mod.rs b/common/client-core/src/client/base_client/mod.rs index 07d676a6f3..d5a28dd78e 100644 --- a/common/client-core/src/client/base_client/mod.rs +++ b/common/client-core/src/client/base_client/mod.rs @@ -337,7 +337,7 @@ where ::StorageError: Send + Sync + 'static, { let managed_keys = initialisation_result.managed_keys; - let GatewayDetails::Configured(gateway_config) = initialisation_result.gateway_details + let GatewayDetails::Configured(mut gateway_config) = initialisation_result.gateway_details else { return Err(ClientCoreError::UnexpectedPersistedCustomGatewayDetails); }; @@ -346,6 +346,7 @@ where if let Some(existing_client) = initialisation_result.authenticated_ephemeral_client { existing_client.upgrade(packet_router, bandwidth_controller, shutdown) } else { + gateway_config.gateway_listener = "ws://10.1.0.1:9000".to_string(); let cfg = gateway_config.try_into()?; GatewayClient::new( cfg,