mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-21 16:09:59 +08:00
fixing build dependency issues
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
package ncutils
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"os/exec"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
||||
)
|
||||
|
||||
// RunCmd - runs a local command
|
||||
@@ -19,6 +23,10 @@ func RunCmd(command string, printerr bool) (string, error) {
|
||||
return string(out), err
|
||||
}
|
||||
|
||||
func RunCmdFormatted(command string, printerr bool) (string, error) {
|
||||
return "", nil
|
||||
}
|
||||
|
||||
// CreateUserSpaceConf - creates a user space WireGuard conf
|
||||
func CreateUserSpaceConf(address string, privatekey string, listenPort string, mtu int32, fwmark int32, perskeepalive int32, peers []wgtypes.PeerConfig) (string, error) {
|
||||
peersString, err := parsePeers(perskeepalive, peers)
|
||||
|
Reference in New Issue
Block a user