Merge branch 'develop' into feature-messageQueue

This commit is contained in:
Matthew R Kasun
2022-01-24 06:21:21 -05:00
42 changed files with 953 additions and 189 deletions

View File

@@ -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