|
@@ -46,10 +46,6 @@ func GetServerConfig() config.ServerConfig {
|
|
if IsRestBackend() {
|
|
if IsRestBackend() {
|
|
cfg.RestBackend = "on"
|
|
cfg.RestBackend = "on"
|
|
}
|
|
}
|
|
- cfg.AgentBackend = "off"
|
|
|
|
- if IsAgentBackend() {
|
|
|
|
- cfg.AgentBackend = "on"
|
|
|
|
- }
|
|
|
|
cfg.DNSMode = "off"
|
|
cfg.DNSMode = "off"
|
|
if IsDNSMode() {
|
|
if IsDNSMode() {
|
|
cfg.DNSMode = "on"
|
|
cfg.DNSMode = "on"
|
|
@@ -304,21 +300,6 @@ func IsMetricsExporter() bool {
|
|
return export
|
|
return export
|
|
}
|
|
}
|
|
|
|
|
|
-// IsAgentBackend - checks if agent backed is on or off
|
|
|
|
-func IsAgentBackend() bool {
|
|
|
|
- isagent := true
|
|
|
|
- if os.Getenv("AGENT_BACKEND") != "" {
|
|
|
|
- if os.Getenv("AGENT_BACKEND") == "off" {
|
|
|
|
- isagent = false
|
|
|
|
- }
|
|
|
|
- } else if config.Config.Server.AgentBackend != "" {
|
|
|
|
- if config.Config.Server.AgentBackend == "off" {
|
|
|
|
- isagent = false
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- return isagent
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
// IsMessageQueueBackend - checks if message queue is on or off
|
|
// IsMessageQueueBackend - checks if message queue is on or off
|
|
func IsMessageQueueBackend() bool {
|
|
func IsMessageQueueBackend() bool {
|
|
ismessagequeue := true
|
|
ismessagequeue := true
|