Parcourir la source

Merge pull request #3233 from gravitl/NET-1782-addon

NET-1782-addon
Abhishek K il y a 9 mois
Parent
commit
12421f4ef8
2 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 1 0
      config/config.go
  2. 1 0
      servercfg/serverconf.go

+ 1 - 0
config/config.go

@@ -102,6 +102,7 @@ type ServerConfig struct {
 	MetricInterval             string        `yaml:"metric_interval"`
 	ManageDNS                  bool          `yaml:"manage_dns"`
 	DefaultDomain              string        `yaml:"default_domain"`
+	PublicIp                   string        `yaml:"public_ip"`
 }
 
 // SQLConfig - Generic SQL Config

+ 1 - 0
servercfg/serverconf.go

@@ -76,6 +76,7 @@ func GetServerConfig() config.ServerConfig {
 	cfg.Database = GetDB()
 	cfg.Platform = GetPlatform()
 	cfg.Version = GetVersion()
+	cfg.PublicIp, _ = GetPublicIP()
 
 	// == auth config ==
 	var authInfo = GetAuthProviderInfo()