Browse Source

Merge branch 'NET-1782' of https://github.com/gravitl/netmaker into NET-1782

abhishek9686 9 tháng trước cách đây
mục cha
commit
bb69717bf2
2 tập tin đã thay đổi với 2 bổ sung0 xóa
  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()