Roger A. Light
004b45fa40
Merge branch 'hardillb-x-forwarded-for-lws'
2022-08-16 14:30:42 +01:00
Roger A. Light
4a6570567a
Merge branch 'x-forwarded-for-lws' of https://github.com/hardillb/mosquitto into hardillb-x-forwarded-for-lws
2022-08-16 14:30:37 +01:00
Ben Hardill
0eec37af99
Add support for X-Forwarded-For LWS
...
I know you've added this for the next release, but here is a fix
for LWS. But just incase there are any more 2.0.x releases.
It does leave the incoming port as 0 but as this is pretty meaningless
for a proxied connection I think it's probably ok.
Signed-off-by: Ben Hardill <hardillb@gmail.com>
2022-08-16 13:54:06 +01:00
Roger A. Light
9d9469cbec
Merge branch 'fixes'
2022-08-16 13:13:06 +01:00
Roger A. Light
966601f6b6
Bump version, new web post
2022-08-16 13:03:44 +01:00
Roger A. Light
4d1b587e29
dynsec: Forbid deleting the anon group.
2022-08-16 12:55:48 +01:00
Roger A. Light
7917553eb2
Fix expired messages causing queued messages not to be delivered.
...
Closes #2609 . Thanks to JSchy65.
2022-08-16 12:29:18 +01:00
Roger A. Light
cd88906132
Clearer function name
2022-08-16 12:28:13 +01:00
Roger A. Light
df317ff71f
Dynamic security: Fix the plugin being able to be loaded twice.
...
Currently only a single plugin can interact with a unique $CONTROL
topic. Using multiple instances of the plugin would produce duplicate
entries in the config file.
Closes #2601 .
Closes #2470 .
2022-08-16 01:27:55 +01:00
Roger A. Light
436f0b9348
dynsec: Fix modifyClient and modifyGroup commands
...
They will now not modify the client/group if a new group/client being
added is not valid, or on other failures.
Closes #2598 . Thanks to Sebastian Szczepański.
2022-08-16 00:48:02 +01:00
Roger A. Light
b22df5140e
Clear errno before check.
2022-08-16 00:23:06 +01:00
Roger A. Light
49ebb58569
Fix failure to close thread in some situations.
...
Closes #2545 . Thanks to p-luke.
2022-08-15 22:17:00 +01:00
Roger A. Light
fa31b6f41d
Fix bridge queued messages not being persisted.
...
This happens when local_cleansession is set to false and cleansession is
set to true.
Closes #2604 . Thank to Frank Dekervel.
2022-08-13 22:46:19 +01:00
Roger A. Light
1ed0c0436a
Run lock only once per week
2022-08-13 21:39:25 +01:00
Muhammed Hashim
b3e26c21d7
Correct a wrong example
...
mosquitto_ctrl example for setClientId was provided with wrong example (duplicate of setClientPassword).
2022-08-13 11:24:59 +05:30
Roger A. Light
5d18962486
Improve custom SSL_CTX tests.
...
Issue #2463 .
2022-08-12 08:52:40 +01:00
Roger A. Light
80c7726d5c
Fix confusing error message when dynamic security config file was a directory.
...
Closes #2520 . Thanks to sezanzeb
2022-08-12 08:34:56 +01:00
Roger A. Light
775bd2effd
Fix confusing "out of memory" error.
...
This happens when a client is kicked in the dynamic security plugin.
Closes #2525 . Thanks to sezanzeb.
2022-08-12 08:17:17 +01:00
Roger A. Light
268a2bae47
Update lock-threads workflow
2022-08-11 15:32:52 +01:00
Roger A. Light
c4664f08ac
Clarify use_username_as_clientid is not global
2022-08-11 11:51:53 +01:00
Roger A. Light
02b92b97ef
Fix use of MOSQ_OPT_SSL_CTX when used with MOSQ_OPT_SSL_CTX_DEFAULTS
...
Closes #2463 . Thanks to Tim Nordell.
2022-08-10 17:18:33 +01:00
Roger A. Light
f9fa19ce6a
- Fix -o
not working in mosquitto_ctrl
, and typo in related documentation.
...
Closes #2471 . Thanks to Vitaljok and rillbert
2022-08-10 15:14:32 +01:00
Roger A. Light
6468bb4f9b
Fix documentation omission around mosquitto_reinitialise.
...
Closes #2489 . Thanks to rroguski
2022-08-10 14:31:34 +01:00
Roger A. Light
351911bd8f
Fix incorrect return code being sent in DISCONNECT.
...
This is for when a client session is taken over.
Closes #2607 . Thanks to der-b
2022-08-10 14:17:22 +01:00
Roger A. Light
08610f7c99
Further fix for #2546 .
2022-08-09 21:25:55 +01:00
Roger A. Light
e979a46c04
Backport SSL connect fixes.
...
Closes #2594 .
Closes #2595 .
2022-08-09 21:25:54 +01:00
Roger A. Light
a913de2d28
Fix some PUBLISH messages not being counted in $SYS stats.
...
Closes #2448 . Thanks to Antoine.
2022-08-08 00:29:37 +01:00
Roger A. Light
ba6bbd5959
Add documentation of struct mosquitto_message to header.
...
Closes #2561 .
2022-08-08 00:01:56 +01:00
Roger A. Light
0c9d9f2163
Don't set SIGPIPE to ignore, use MSG_NOSIGNAL instead.
...
Closes #2564 . Thanks to nmeum.
2022-08-07 23:04:46 +01:00
Roger A. Light
8c0600c40c
Fixed build for openssl compiled with OPENSSL_NO_ENGINE.
...
Closes #2589 . Thanks to Dirk Feytons.
2022-08-06 23:16:55 +01:00
Roger A. Light
a146c218ad
Fix unlimited message quota not being properly checked.
...
This is for incoming messages.
Closes #2593 . Thanks to dongguoqing2015.
2022-08-06 22:49:08 +01:00
Roger A. Light
efef2abdce
Separate coverity scan branches scans.
2022-08-01 22:26:45 +01:00
Roger A. Light
71a90177d7
Systemd: Add mosquitto group ownership
...
Thanks to minfrin
2022-07-20 17:03:42 +01:00
Roger A. Light
ff97fbfe94
Fix links
2022-07-06 16:36:21 +01:00
Roger A. Light
ee1487743a
Remove dead link
2022-07-06 16:34:43 +01:00
Roger A. Light
ca009907e5
Web page update including external docs.
2022-07-06 16:28:07 +01:00
Roger Light
f1bf2938b0
Merge pull request #2577 from marchputt/patch-1
...
Fix syntax errors in examples
2022-06-22 22:09:04 +01:00
Pargorn Puttapirat
9417facffa
Fix syntax errors in examples
...
Problematics examples: addRoleACL and removeRoleACL
2022-06-23 00:26:00 +07:00
Roger A. Light
2e061afcc6
Fix build
2022-06-03 20:49:59 +01:00
Roger A. Light
ebfebf8708
Fix bridges not sending failure notification messages.
...
This is for messages to the local broker if the remote bridge connection
fails.
Closes #1488 .
Closes #2467 .
2022-05-25 16:23:35 +01:00
Roger A. Light
3e1cf8a80b
Fix tests build.
2022-05-25 16:16:48 +01:00
Roger A. Light
c99502a256
Add clients to session expiry check list when restarting and reloading from persistence.
...
Closes #2546 . Thanks to Joachim Schachermayer.
2022-05-23 23:05:49 +01:00
Roger A. Light
80b36919b1
Fix incorrect pointer use.
2022-05-23 22:38:02 +01:00
Roger A. Light
29c6480c47
Improve documentation of persistent_client_expiration
option.
...
Closes #2404 . Thanks to Rainer Plischke.
2022-05-19 17:04:20 +01:00
Roger A. Light
4ac8c0bcc3
Add deny-protocol-version example plugin, for 2.0 only.
2022-05-17 21:11:46 +01:00
Roger A. Light
09ac578459
Fix unused flags in CONNECT command being forced to be 0 in MQTT v3.1
...
This check is not required until v3.1.1.
Closes #2522 . Thanks to garinocyr
2022-05-17 17:41:57 +01:00
Roger A. Light
b6b8039914
Fix use of MOSQ_OPT_TLS_ENGINE
being unable to be used.
...
This was due to the openssl ctx not being initialised until starting to connect.
Closes #2537 . Thanks to chessing-c4.
2022-05-17 17:19:17 +01:00
Roger A. Light
e5bf040fb7
Weekly Coverity Scan run.
2022-05-13 13:25:16 +01:00
Roger A. Light
127c5e7577
Update changelog
2022-05-11 15:55:05 +01:00
Roger A. Light
45a6b89e91
Merge branch 'abiliojr-fix_msg_modification_leak' into fixes
2022-05-11 15:53:59 +01:00