mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-05 08:47:35 +08:00
minor logic revisions
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user