format and update version in readme

This commit is contained in:
0xdcarns 2021-10-25 16:51:26 -04:00
parent 6891b52cee
commit 72ce7dcfd0
4 changed files with 8 additions and 8 deletions

View file

@ -8,7 +8,7 @@
<p align="center">
<a href="https://github.com/gravitl/netmaker/releases">
<img src="https://img.shields.io/badge/Version-0.8.4-informational?style=flat-square" />
<img src="https://img.shields.io/badge/Version-0.8.5-informational?style=flat-square" />
</a>
<a href="https://discord.gg/zRb9Vfhk8A">
<img src="https://img.shields.io/badge/community-discord-informational" />

View file

@ -5,8 +5,6 @@ import (
"encoding/json"
"errors"
"fmt"
"log"
"os/exec"
nodepb "github.com/gravitl/netmaker/grpc"
"github.com/gravitl/netmaker/models"
"github.com/gravitl/netmaker/netclient/auth"
@ -18,6 +16,8 @@ import (
"github.com/gravitl/netmaker/netclient/wireguard"
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
"google.golang.org/grpc"
"log"
"os/exec"
)
// JoinNetwork - helps a client join a network
@ -84,8 +84,8 @@ func JoinNetwork(cfg config.ClientConfig, privateKey string) error {
if ncutils.IsLinux() {
_, err := exec.LookPath("resolvectl")
if err != nil {
ncutils.PrintLog("resolvectl not present",2)
ncutils.PrintLog("unable to configure DNS automatically, disabling automated DNS management",2)
ncutils.PrintLog("resolvectl not present", 2)
ncutils.PrintLog("unable to configure DNS automatically, disabling automated DNS management", 2)
cfg.Node.DNSOn = "no"
}
}

View file

@ -155,9 +155,9 @@ func parsePeers(keepalive int32, peers []wgtypes.PeerConfig) (string, error) {
if keepalive <= 0 {
keepalive = 20
}
for _, peer := range peers {
endpointString := ""
endpointString := ""
if peer.Endpoint != nil && peer.Endpoint.String() != "" {
endpointString += "Endpoint = " + peer.Endpoint.String()
}

View file

@ -1,8 +1,8 @@
package servercfg
import (
"os"
"github.com/gravitl/netmaker/config"
"os"
"strconv"
)