minor logic revisions

This commit is contained in:
afeiszli
2022-04-24 13:47:23 -04:00
parent 91ca96534b
commit 9a66674a5c
3 changed files with 11 additions and 18 deletions

View File

@@ -11,7 +11,7 @@ import (
"github.com/gravitl/netmaker/netclient/ncutils"
)
// Get LocalListenPort - Gets the port running on the local interface
// GetLocalListenPort - Gets the port running on the local interface
func GetLocalListenPort(ifacename string) (int32, error) {
portstring, err := ncutils.RunCmd("wg show "+ifacename+" listen-port", false)
if err != nil {