From 2844eecb65501f7dafa4de15d7377bfb810e1158 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Wed, 18 Dec 2024 13:36:52 -0500 Subject: Make IPC opt-in and configurable --- src/tracker_config.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/tracker_config.cpp') diff --git a/src/tracker_config.cpp b/src/tracker_config.cpp index 85164d5..129dbbc 100644 --- a/src/tracker_config.cpp +++ b/src/tracker_config.cpp @@ -27,6 +27,8 @@ void TrackerConfig::Load() { }); } } + + ipc_address = file["ipc_address"].as(); } catch (const std::exception&) { // It's fine if the file can't be loaded. } @@ -52,6 +54,8 @@ void TrackerConfig::Save() { output["connection_history"].push_back(connection); } + output["ipc_address"] = ipc_address; + std::ofstream filewriter(filename_); filewriter << output; } -- cgit 1.4.1