From 46cb806b3fcf4fafc3d927781fb29aba5f3cbaef Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Tue, 23 Oct 2018 16:07:08 +0200 Subject: [PATCH] Add a note for config updates V1 and V2 Old clients sync !.conf via update_v2 message, we cannot remove this handling for the time being. --- lib/remote/apilistener-filesync.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/remote/apilistener-filesync.cpp b/lib/remote/apilistener-filesync.cpp index c8afd43af..68625a4b7 100644 --- a/lib/remote/apilistener-filesync.cpp +++ b/lib/remote/apilistener-filesync.cpp @@ -32,6 +32,11 @@ void ApiListener::ConfigGlobHandler(ConfigDirInformation& config, const String& Dictionary::Ptr update; + /* + * 'update' messages contain conf files. 'update_v2' syncs everything else (.timestamp). + * + * **Keep this intact to stay compatible with older clients.** + */ if (Utility::Match("*.conf", file)) update = config.UpdateV1; else -- 2.40.0