Browse Source

Merge pull request #1511 from gravitl/bugfix_v0.15.1_netclient_version

Bugfix v0.15.1 netclient version
Alex Feiszli 2 years ago
parent
commit
edce72cf1e
1 changed files with 5 additions and 0 deletions
  1. 5 0
      netclient/functions/mqpublish.go

+ 5 - 0
netclient/functions/mqpublish.go

@@ -94,6 +94,11 @@ func checkin() {
 				}
 				}
 			}
 			}
 		}
 		}
+		//check version
+		if nodeCfg.Node.Version != ncutils.Version {
+			nodeCfg.Node.Version = ncutils.Version
+			config.Write(&nodeCfg, nodeCfg.Network)
+		}
 		Hello(&nodeCfg)
 		Hello(&nodeCfg)
 		checkCertExpiry(&nodeCfg)
 		checkCertExpiry(&nodeCfg)
 	}
 	}