lib/upgrade: Send OS version header to upgrade server (#9663)

This adds a header with the operating system version, verbatim in
whatever format the operating system reports it, to the upgrade check.
The intention is that the upgrade server can use this information to
filter out (or maybe just mark) potentially unsupported upgrades.
This commit is contained in:
Jakob Borg
2024-08-28 08:32:03 +02:00
parent 9ef37e1485
commit 27bba2c0c2
5 changed files with 32 additions and 6 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ import (
"strings"
"time"
"github.com/shirou/gopsutil/v3/disk"
"github.com/shirou/gopsutil/v4/disk"
"github.com/syncthing/syncthing/lib/build"
)