Merge pull request #1316 from gravitl/bugfix_v0.14.5_wg_ports

Bugfix v0.14.5 wg ports
This commit is contained in:
dcarns
2022-07-07 11:29:45 -04:00
committed by GitHub
6 changed files with 61 additions and 39 deletions

View File

@@ -10,6 +10,7 @@ import (
"net"
"net/http"
"os"
"strconv"
"strings"
"time"
@@ -415,3 +416,11 @@ func SetServerInfo(cfg *config.ClientConfig) error {
return nil
}
func informPortChange(node *models.Node) {
if node.ListenPort == 0 {
logger.Log(0, "UDP hole punching enabled for node", node.Name)
} else {
logger.Log(0, "node", node.Name, "is using port", strconv.Itoa(int(node.ListenPort)))
}
}