adding logic for key checks, OS on server

This commit is contained in:
afeiszli
2022-02-04 14:19:26 -05:00
parent 3248717585
commit 2cbf08ad1e
7 changed files with 42 additions and 26 deletions

View File

@@ -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