mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-14 01:04:14 +00:00
cmd/ursrv, lib/ur: Collect and present encryption usage (#7448)
This commit is contained in:
parent
5548a8eb7a
commit
9a001051d6
@ -745,6 +745,7 @@ func getReport(db *sql.DB) map[string]interface{} {
|
|||||||
inc(features["Folder"]["v3"], "Weak hash, custom threshold", rep.FolderUsesV3.CustomWeakHashThreshold)
|
inc(features["Folder"]["v3"], "Weak hash, custom threshold", rep.FolderUsesV3.CustomWeakHashThreshold)
|
||||||
inc(features["Folder"]["v3"], "Filesystem watcher", rep.FolderUsesV3.FsWatcherEnabled)
|
inc(features["Folder"]["v3"], "Filesystem watcher", rep.FolderUsesV3.FsWatcherEnabled)
|
||||||
inc(features["Folder"]["v3"], "Case sensitive FS", rep.FolderUsesV3.CaseSensitiveFS)
|
inc(features["Folder"]["v3"], "Case sensitive FS", rep.FolderUsesV3.CaseSensitiveFS)
|
||||||
|
inc(features["Folder"]["v3"], "Mode, receive encrypted", rep.FolderUsesV3.ReceiveEncrypted)
|
||||||
|
|
||||||
add(featureGroups["Folder"]["v3"], "Conflicts", "Disabled", rep.FolderUsesV3.ConflictsDisabled)
|
add(featureGroups["Folder"]["v3"], "Conflicts", "Disabled", rep.FolderUsesV3.ConflictsDisabled)
|
||||||
add(featureGroups["Folder"]["v3"], "Conflicts", "Unlimited", rep.FolderUsesV3.ConflictsUnlimited)
|
add(featureGroups["Folder"]["v3"], "Conflicts", "Unlimited", rep.FolderUsesV3.ConflictsUnlimited)
|
||||||
|
@ -129,6 +129,7 @@ type Report struct {
|
|||||||
BlockPullOrder map[string]int `json:"blockPullOrder,omitempty" since:"3"`
|
BlockPullOrder map[string]int `json:"blockPullOrder,omitempty" since:"3"`
|
||||||
CopyRangeMethod map[string]int `json:"copyRangeMethod,omitempty" since:"3"`
|
CopyRangeMethod map[string]int `json:"copyRangeMethod,omitempty" since:"3"`
|
||||||
CaseSensitiveFS int `json:"caseSensitiveFS,omitempty" since:"3"`
|
CaseSensitiveFS int `json:"caseSensitiveFS,omitempty" since:"3"`
|
||||||
|
ReceiveEncrypted int `json:"receiveencrypted,omitempty" since:"3"`
|
||||||
} `json:"folderUsesV3,omitempty" since:"3"`
|
} `json:"folderUsesV3,omitempty" since:"3"`
|
||||||
|
|
||||||
DeviceUsesV3 struct {
|
DeviceUsesV3 struct {
|
||||||
|
@ -267,6 +267,9 @@ func (s *Service) reportData(ctx context.Context, urVersion int, preview bool) (
|
|||||||
if cfg.CaseSensitiveFS {
|
if cfg.CaseSensitiveFS {
|
||||||
report.FolderUsesV3.CaseSensitiveFS++
|
report.FolderUsesV3.CaseSensitiveFS++
|
||||||
}
|
}
|
||||||
|
if cfg.Type == config.FolderTypeReceiveEncrypted {
|
||||||
|
report.FolderUsesV3.ReceiveEncrypted++
|
||||||
|
}
|
||||||
}
|
}
|
||||||
sort.Ints(report.FolderUsesV3.FsWatcherDelays)
|
sort.Ints(report.FolderUsesV3.FsWatcherDelays)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user