mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-09 09:50:30 +00:00
Correctly report the default relay server in usage stats
This commit is contained in:
parent
36f6a9347c
commit
d4b0235a8b
@ -201,7 +201,7 @@ func reportData(cfg *config.Wrapper, m *model.Model) map[string]interface{} {
|
|||||||
defaultRelayServers, otherRelayServers := 0, 0
|
defaultRelayServers, otherRelayServers := 0, 0
|
||||||
for _, addr := range cfg.Options().RelayServers {
|
for _, addr := range cfg.Options().RelayServers {
|
||||||
switch addr {
|
switch addr {
|
||||||
case "dynamic+https://relays.syncthing.net":
|
case "dynamic+https://relays.syncthing.net/endpoint":
|
||||||
defaultRelayServers++
|
defaultRelayServers++
|
||||||
default:
|
default:
|
||||||
otherRelayServers++
|
otherRelayServers++
|
||||||
|
Loading…
Reference in New Issue
Block a user