about summary refs log tree commit diff stats
path: root/src/tracker_config.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tracker_config.cpp')
-rw-r--r--src/tracker_config.cpp4
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}