fix tests
This commit is contained in:
parent
c2bcb13769
commit
346895eff3
1 changed files with 8 additions and 7 deletions
|
|
@ -377,6 +377,8 @@ class BumperMQTTServer_Plugin:
|
||||||
)
|
)
|
||||||
mqttserverlog.info(f"Bumper Authentication Success - Bot - SN: {username} - DID: {didsplit[0]} - Class: {tmpbotdetail[0]}")
|
mqttserverlog.info(f"Bumper Authentication Success - Bot - SN: {username} - DID: {didsplit[0]} - Class: {tmpbotdetail[0]}")
|
||||||
authenticated = True
|
authenticated = True
|
||||||
|
|
||||||
|
if authenticated and bumper.bumper_proxy_mode:
|
||||||
mqtt_server = bumper.config_proxyMode_getServerIP("mqtt_server","")
|
mqtt_server = bumper.config_proxyMode_getServerIP("mqtt_server","")
|
||||||
if mqtt_server:
|
if mqtt_server:
|
||||||
proxymodelog.info(f"MQTT Proxy Mode - Using server {mqtt_server}")
|
proxymodelog.info(f"MQTT Proxy Mode - Using server {mqtt_server}")
|
||||||
|
|
@ -385,7 +387,6 @@ class BumperMQTTServer_Plugin:
|
||||||
proxymodelog.exception(f"MQTT Proxy Mode - Exiting due to no MQTT Server configured!")
|
proxymodelog.exception(f"MQTT Proxy Mode - Exiting due to no MQTT Server configured!")
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
if authenticated and bumper.bumper_proxy_mode:
|
|
||||||
proxymodelog.info(f"MQTT Proxy Mode - Proxy Bot to MQTT - Client_id: {client_id} - Username: {username}")
|
proxymodelog.info(f"MQTT Proxy Mode - Proxy Bot to MQTT - Client_id: {client_id} - Username: {username}")
|
||||||
|
|
||||||
self.proxyclients[client_id] = BumperProxyModeMQTTClient(
|
self.proxyclients[client_id] = BumperProxyModeMQTTClient(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue