Merge branch 'main' into dev

This commit is contained in:
Leandro Antônio Farias Machado 2023-05-29 07:57:27 -03:00
commit 63ff7e23bb

View File

@ -140,8 +140,8 @@ func main() {
}
}
log.Println("Mqtt Broker is running with TLS")
} else {
log.Println("Mqtt Broker is running with TLS at port 8883")
}
if *tcpAddr != "" {
//tcp := listeners.NewTCP("t1", *tcpAddr, &listeners.Config{
// TLSConfig: tlsConfig,
@ -152,8 +152,7 @@ func main() {
log.Fatal(err)
}
}
log.Println("Mqtt Broker is running without TLS, (it's dangerous)")
}
log.Println("Mqtt Broker is running without TLS at port 1883")
if *wsAddr != "" {
ws := listeners.NewWebsocket("ws1", *wsAddr, nil)