mirror of
https://github.com/gravitl/netmaker.git
synced 2024-09-25 01:36:04 +08:00
Merge branch 'master' of github.com:gravitl/netmaker
This commit is contained in:
commit
4b65bb5f67
|
@ -35,7 +35,7 @@ func GetEmbedded() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// CreateWireGuardConf - creates a WireGuard conf string
|
// CreateWireGuardConf - creates a WireGuard conf string
|
||||||
func CreateWireGuardConf(node *models.Node, privatekey string, listenPort string, dns string, peers []wgtypes.PeerConfig) (string, error) {
|
func CreateWireGuardConf(node *models.Node, privatekey string, listenPort string, peers []wgtypes.PeerConfig) (string, error) {
|
||||||
peersString, err := parsePeers(node.PersistentKeepalive, peers)
|
peersString, err := parsePeers(node.PersistentKeepalive, peers)
|
||||||
var listenPortString string
|
var listenPortString string
|
||||||
if node.MTU <= 0 {
|
if node.MTU <= 0 {
|
||||||
|
|
|
@ -44,7 +44,7 @@ func RunCmd(command string, printerr bool) (string, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// CreateWireGuardConf - creates a WireGuard conf string
|
// CreateWireGuardConf - creates a WireGuard conf string
|
||||||
func CreateWireGuardConf(node *models.Node, privatekey string, listenPort string, dns string, peers []wgtypes.PeerConfig) (string, error) {
|
func CreateWireGuardConf(node *models.Node, privatekey string, listenPort string, peers []wgtypes.PeerConfig) (string, error) {
|
||||||
peersString, err := parsePeers(node.PersistentKeepalive, peers)
|
peersString, err := parsePeers(node.PersistentKeepalive, peers)
|
||||||
var listenPortString string
|
var listenPortString string
|
||||||
if node.MTU <= 0 {
|
if node.MTU <= 0 {
|
||||||
|
|
|
@ -49,7 +49,7 @@ func RunCmdFormatted(command string, printerr bool) (string, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// CreateWireGuardConf - creates a WireGuard conf string
|
// CreateWireGuardConf - creates a WireGuard conf string
|
||||||
func CreateWireGuardConf(node *models.Node, privatekey string, listenPort string, dns string, peers []wgtypes.PeerConfig) (string, error) {
|
func CreateWireGuardConf(node *models.Node, privatekey string, listenPort string, peers []wgtypes.PeerConfig) (string, error) {
|
||||||
peersString, err := parsePeers(node.PersistentKeepalive, peers)
|
peersString, err := parsePeers(node.PersistentKeepalive, peers)
|
||||||
var listenPortString string
|
var listenPortString string
|
||||||
if node.MTU <= 0 {
|
if node.MTU <= 0 {
|
||||||
|
|
Loading…
Reference in a new issue