diff --git a/apps/emqx_gateway/src/emqx_gateway_ctx.erl b/apps/emqx_gateway/src/emqx_gateway_ctx.erl index f43620996..3af6fde20 100644 --- a/apps/emqx_gateway/src/emqx_gateway_ctx.erl +++ b/apps/emqx_gateway/src/emqx_gateway_ctx.erl @@ -68,7 +68,8 @@ | {error, any()}. authenticate(_Ctx = #{auth := ChainId}, ClientInfo0) -> ClientInfo = ClientInfo0#{ - zone => undefined, + zone => default, + listener => mqtt_tcp, chain_id => ChainId }, case emqx_access_control:authenticate(ClientInfo) of