fix: disable multiple mtps block rule
This commit is contained in:
parent
bab2699f73
commit
f31e5159c9
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user