From 6644f867dfc4503d9fff968692e612f110149df6 Mon Sep 17 00:00:00 2001 From: gururaajar <83449026+gururaajar@users.noreply.github.com> Date: Fri, 24 May 2024 13:52:38 -0400 Subject: [PATCH] DELIA-65341 - getPublicIP is not returning proper value (#5331) getPublicIP is not returning proper value Reason for change: Without checking the null check, the config stun endpoint and port value is being set. Added null condition check so that config value is taken when it is non empty and default value will be taken when config value is empty Test Procedure: Build and verified Risks: Low Priority: P1 Signed-off-by: Gururaaja ESR --- NetworkManager/service/NetworkManagerImplementation.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NetworkManager/service/NetworkManagerImplementation.h b/NetworkManager/service/NetworkManagerImplementation.h index 20b018e631..4cc7906a58 100644 --- a/NetworkManager/service/NetworkManagerImplementation.h +++ b/NetworkManager/service/NetworkManagerImplementation.h @@ -92,8 +92,8 @@ namespace WPEFramework Stun() : Core::JSON::Container() - , stunEndpoint(_T("")) - , port(19310) + , stunEndpoint(_T("stun.l.google.com")) + , port(19302) , interval(30) { Add(_T("endpoint"), &stunEndpoint);