|
@@ -95,7 +95,6 @@ func GetServerConfig() config.ServerConfig {
|
|
|
cfg.MetricInterval = GetMetricInterval()
|
|
|
cfg.ManageDNS = GetManageDNS()
|
|
|
cfg.DefaultDomain = GetDefaultDomain()
|
|
|
- cfg.StunStatus = GetSTUNStatus()
|
|
|
return cfg
|
|
|
}
|
|
|
|
|
@@ -142,7 +141,6 @@ func GetServerInfo() models.ServerConfig {
|
|
|
cfg.MetricInterval = GetMetricInterval()
|
|
|
cfg.ManageDNS = GetManageDNS()
|
|
|
cfg.DefaultDomain = GetDefaultDomain()
|
|
|
- cfg.StunStatus = GetSTUNStatus()
|
|
|
return cfg
|
|
|
}
|
|
|
|
|
@@ -848,14 +846,6 @@ func GetAllowedEmailDomains() string {
|
|
|
return allowedDomains
|
|
|
}
|
|
|
|
|
|
-func GetSTUNStatus() bool {
|
|
|
- s := true
|
|
|
- if os.Getenv("STUN_STATUS") != "" {
|
|
|
- s = os.Getenv("STUN_STATUS") == "true"
|
|
|
- }
|
|
|
- return s
|
|
|
-}
|
|
|
-
|
|
|
// GetNmBaseDomain - fetches nm base domain
|
|
|
func GetNmBaseDomain() string {
|
|
|
return os.Getenv("NM_DOMAIN")
|