Merge pull request #7941 from EMQ-YangM/disable_bridge_mode

fix: mqtt connector disable bridge_mode
This commit is contained in:
Yang Miao 2022-05-13 15:01:14 +08:00 committed by GitHub
commit ff91759e6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -241,7 +241,12 @@ basic_config(#{
connect_timeout => 30,
reconnect_interval => ReconnIntv,
proto_ver => ProtoVer,
bridge_mode => true,
%% Opening bridge_mode will form a non-standard mqtt connection message.
%% A load balancing server (such as haproxy) is often set up before the emqx broker server.
%% When the load balancing server enables mqtt connection packet inspection,
%% non-standard mqtt connection packets will be filtered out by LB.
%% So let's disable bridge_mode.
bridge_mode => false,
username => User,
password => Password,
clean_start => CleanStart,