Explorar el Código

check host ports on join (#3437)

Abhishek K hace 4 meses
padre
commit
85084f9dfe
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      controllers/enrollmentkeys.go

+ 1 - 1
controllers/enrollmentkeys.go

@@ -301,7 +301,7 @@ func handleHostRegister(w http.ResponseWriter, r *http.Request) {
 	if !hostExists {
 		newHost.PersistentKeepalive = models.DefaultPersistentKeepAlive
 		// register host
-		//logic.CheckHostPorts(&newHost)
+		logic.CheckHostPorts(&newHost)
 		// create EMQX credentials and ACLs for host
 		if servercfg.GetBrokerType() == servercfg.EmqxBrokerType {
 			if err := mq.GetEmqxHandler().CreateEmqxUser(newHost.ID.String(), newHost.HostPass); err != nil {