mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-08 10:11:08 +08:00
Change to single variable in ClientConfig (no nested GlobalSettings).
This commit is contained in:
@@ -85,7 +85,7 @@ func JoinNetwork(cfg *config.ClientConfig, privateKey string) error {
|
||||
if cfg.Node.IsLocal == "yes" && cfg.Node.LocalAddress != "" {
|
||||
cfg.Node.Endpoint = cfg.Node.LocalAddress
|
||||
} else {
|
||||
cfg.Node.Endpoint, err = ncutils.GetPublicIP(cfg.GlobalSettings.PublicIPService)
|
||||
cfg.Node.Endpoint, err = ncutils.GetPublicIP(cfg.PublicIPService)
|
||||
}
|
||||
if err != nil || cfg.Node.Endpoint == "" {
|
||||
logger.Log(0, "network:", cfg.Network, "error setting cfg.Node.Endpoint.")
|
||||
|
@@ -44,7 +44,7 @@ func checkin() {
|
||||
nodeCfg.Network = network
|
||||
nodeCfg.ReadConfig()
|
||||
if nodeCfg.Node.IsStatic != "yes" {
|
||||
extIP, err := ncutils.GetPublicIP(nodeCfg.GlobalSettings.PublicIPService)
|
||||
extIP, err := ncutils.GetPublicIP(nodeCfg.PublicIPService)
|
||||
if err != nil {
|
||||
logger.Log(1, "error encountered checking public ip addresses: ", err.Error())
|
||||
}
|
||||
|
Reference in New Issue
Block a user