mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-06 09:22:42 +08:00
Merge branch 'develop' into feature-messageQueue
This commit is contained in:
@@ -86,6 +86,7 @@ func GetServerConfig() config.ServerConfig {
|
||||
cfg.RCE = "off"
|
||||
}
|
||||
cfg.Debug = GetDebug()
|
||||
cfg.Telemetry = Telemetry()
|
||||
|
||||
return cfg
|
||||
}
|
||||
@@ -356,6 +357,18 @@ func IsClientMode() string {
|
||||
return isclient
|
||||
}
|
||||
|
||||
// Telemetry - checks if telemetry data should be sent
|
||||
func Telemetry() string {
|
||||
telemetry := "on"
|
||||
if os.Getenv("TELEMETRY") == "off" {
|
||||
telemetry = "off"
|
||||
}
|
||||
if config.Config.Server.Telemetry == "off" {
|
||||
telemetry = "off"
|
||||
}
|
||||
return telemetry
|
||||
}
|
||||
|
||||
// IsDNSMode - should it run with DNS
|
||||
func IsDNSMode() bool {
|
||||
isdns := true
|
||||
|
Reference in New Issue
Block a user