fix: disable multiple mtps block rule

This commit is contained in:
leandrofars 2024-02-08 14:08:56 -03:00
parent bab2699f73
commit f31e5159c9

View File

@ -103,7 +103,7 @@ func main() {
*/ */
log.Println("Start MTP protocols: MQTT | Websockets | STOMP") log.Println("Start MTP protocols: MQTT | Websockets | STOMP")
if *flDisableMqtt && *flDisableStomp { if *flDisableMqtt && *flDisableStomp && *flDisableWs {
log.Println("ERROR: you have to enable at least one MTP") log.Println("ERROR: you have to enable at least one MTP")
os.Exit(0) os.Exit(0)
} }
@ -175,6 +175,7 @@ func main() {
Route: *flWsRoute, Route: *flWsRoute,
Auth: *flWsAuth, Auth: *flWsAuth,
TLS: *flWsTls, TLS: *flWsTls,
DB: database,
Ctx: ctx, Ctx: ctx,
} }