Modify client-side behavior

This commit is contained in:
M Essam Hamed
2025-10-01 17:58:38 +03:00
parent ad3985ac63
commit b070304d46
10 changed files with 730 additions and 479 deletions
+3 -1
View File
@@ -710,7 +710,9 @@ func toPeerConfig(peer *nbpeer.Peer, network *types.Network, dnsName string, set
Fqdn: fqdn,
RoutingPeerDnsResolutionEnabled: settings.RoutingPeerDNSResolutionEnabled,
LazyConnectionEnabled: settings.LazyConnectionEnabled,
AutoUpdateVersion: settings.AutoUpdateVersion,
AutoUpdate: &proto.AutoUpdateSettings{
Version: settings.AutoUpdateVersion,
},
}
}
+1 -1
View File
@@ -54,7 +54,7 @@ type Settings struct {
LazyConnectionEnabled bool `gorm:"default:false"`
// AutoUpdateVersion client auto-update version
AutoUpdateVersion string
AutoUpdateVersion string `gorm:"default:'latest'"`
}
// Copy copies the Settings struct