added inform port change util func

This commit is contained in:
0xdcarns
2022-07-07 09:52:20 -04:00
parent c481f27200
commit 5fc73e6a80
4 changed files with 13 additions and 4 deletions

View File

@@ -8,7 +8,6 @@ import (
"net/http"
"os"
"runtime"
"strconv"
"github.com/gravitl/netmaker/logger"
"github.com/gravitl/netmaker/models"
@@ -68,7 +67,7 @@ func Pull(network string, iface bool) (*models.Node, error) {
if err != nil {
return nil, err
}
logger.Log(0, "port is now", strconv.Itoa(int(resNode.ListenPort)))
informPortChange(&resNode)
}
if err = config.ModNodeConfig(&resNode); err != nil {
return nil, err