79078666

Date: 2024-10-11 14:41:18
Score: 2
Natty:
Report link

@javier-matute-barragán the short answer is: please open an feature request to the Moquette project https://github.com/moquette-io/moquette/.

Long answer: Moquette could grab the remote IP from the incoming connection, but that wouldn't necessarily be the originating host, maybe because in the middle there is a proxy or similar. I would suggest that each client discover his external IP, and using user-properties communicate down the broker (only in MQTT 5) and that point the InterceptConnectMessage would contains also such user properties, and for this you also need to create a feature request.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @javier-matute-barragán
  • Low reputation (1):
Posted by: andrea selva