fixing ip check

This commit is contained in:
afeiszli
2022-05-27 10:52:47 -04:00
parent 50540c4501
commit 709ecd8cfe
3 changed files with 2 additions and 22 deletions

View File

@@ -95,7 +95,7 @@ func ServerJoin(networkSettings *models.Network) (models.Node, error) {
if node.IsLocal == "yes" && node.LocalAddress != "" {
node.Endpoint = node.LocalAddress
} else {
node.Endpoint, err = ncutils.GetPublicIP()
node.Endpoint, err = servercfg.GetPublicIP()
}
if err != nil || node.Endpoint == "" {
logger.Log(0, "Error setting server node Endpoint.")