mirror of
https://github.com/gravitl/netmaker.git
synced 2026-02-21 05:13:24 +08:00
check host ports on join (#3437)
This commit is contained in:
parent
b0a8a07ebd
commit
85084f9dfe
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue