diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-12-18 13:36:52 -0500 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-12-18 13:36:52 -0500 |
| commit | 2844eecb65501f7dafa4de15d7377bfb810e1158 (patch) | |
| tree | 7b2530cba82e54655a74bdcd6e31d9724583e83b /src/tracker_config.cpp | |
| parent | 4fb25ff5efe48ca8f594ce5b5d2839cb244018a9 (diff) | |
| download | lingo-ap-tracker-2844eecb65501f7dafa4de15d7377bfb810e1158.tar.gz lingo-ap-tracker-2844eecb65501f7dafa4de15d7377bfb810e1158.tar.bz2 lingo-ap-tracker-2844eecb65501f7dafa4de15d7377bfb810e1158.zip | |
Make IPC opt-in and configurable
Diffstat (limited to 'src/tracker_config.cpp')
| -rw-r--r-- | src/tracker_config.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
| 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() { | |||
| 27 | }); | 27 | }); |
| 28 | } | 28 | } |
| 29 | } | 29 | } |
| 30 | |||
| 31 | ipc_address = file["ipc_address"].as<std::string>(); | ||
| 30 | } catch (const std::exception&) { | 32 | } catch (const std::exception&) { |
| 31 | // It's fine if the file can't be loaded. | 33 | // It's fine if the file can't be loaded. |
| 32 | } | 34 | } |
| @@ -52,6 +54,8 @@ void TrackerConfig::Save() { | |||
| 52 | output["connection_history"].push_back(connection); | 54 | output["connection_history"].push_back(connection); |
| 53 | } | 55 | } |
| 54 | 56 | ||
| 57 | output["ipc_address"] = ipc_address; | ||
| 58 | |||
| 55 | std::ofstream filewriter(filename_); | 59 | std::ofstream filewriter(filename_); |
| 56 | filewriter << output; | 60 | filewriter << output; |
| 57 | } | 61 | } |
