mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-05 16:57:51 +08:00
adding logic for key checks, OS on server
This commit is contained in:
@@ -60,6 +60,8 @@ func JoinNetwork(cfg config.ClientConfig, privateKey string) error {
|
||||
trafficPubKeyBytes, err := ncutils.ConvertKeyToBytes(trafficPubKey)
|
||||
if err != nil {
|
||||
return err
|
||||
} else if trafficPubKeyBytes == nil {
|
||||
return fmt.Errorf("traffic key is nil")
|
||||
}
|
||||
|
||||
cfg.Node.TrafficKeys.Mine = trafficPubKeyBytes
|
||||
|
Reference in New Issue
Block a user