Skip to content

Commit

Permalink
connectivity monitor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cmuhammedrafi committed Dec 27, 2024
1 parent 27ef014 commit de6949c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion NetworkManagerConnectivity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ namespace WPEFramework
EndpointManager::EndpointManager()
{
m_CachefilePath = NMCONNECTIVITY_MONITOR_CACHE_FILE;
m_Endpoints = {NMCONNECTIVITY_MONITOR_DEFAULT_ENDPOINT};
m_Endpoints.clear(); // default value will be loaded from NetworkManagerImplementation configuration

std::ifstream inputFile(m_CachefilePath);
if (inputFile.is_open())
Expand Down
1 change: 0 additions & 1 deletion NetworkManagerConnectivity.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ enum nsm_connectivity_httpcode {
#define NMCONNECTIVITY_CURL_HEAD_REQUEST true
#define NMCONNECTIVITY_CURL_GET_REQUEST false
#define NMCONNECTIVITY_MONITOR_CACHE_FILE "/tmp/nm.plugin.endpoints"
#define NMCONNECTIVITY_MONITOR_DEFAULT_ENDPOINT "http://clients3.google.com/generate_204"
#define NMCONNECTIVITY_MONITOR_MIN_INTERVAL 5 // sec
#define NMCONNECTIVITY_MONITOR_RETRY_INTERVAL 30 // sec
#define NMCONNECTIVITY_CURL_REQUEST_TIMEOUT_MS 5000 // ms
Expand Down

0 comments on commit de6949c

Please sign in to comment.