Sébastien Helleu
a317c785fb
relay/api: add automatic reconnection to remote ( closes #2166 )
...
New options:
- remote option "autoreconnect_delay"
- relay.api.remote_autoreconnect_delay_growing
- relay.api.remote_autoreconnect_delay_max
2024-08-11 12:18:28 +02:00
Sébastien Helleu
24734c4fe0
relay/api: add field "tmie_displayed" in GET /api/buffers
2024-08-10 13:58:58 +02:00
Sébastien Helleu
41ab22554c
tests/relay/api: add missing fields in test of buffer to json function
2024-08-10 13:42:38 +02:00
Sébastien Helleu
b00f94dc70
relay/api: add field "hidden" in GET /api/buffers (issue #2159 )
2024-08-10 12:42:55 +02:00
Sébastien Helleu
07ef722c06
relay/api: disconnect cleanly when the remote is quitting ( closes #2168 )
2024-08-09 23:37:33 +02:00
Sébastien Helleu
6e775e4768
relay/api: close obsolete buffers when reconnecting to the remote
...
This closes all buffers that exist locally but not on the remote any more,
after reconnecting to the remote.
2024-08-09 18:08:31 +02:00
Sébastien Helleu
eb5399518e
relay/api: clear lines and nicklist on all remote buffers upon successful connection to the remote ( closes #2161 )
2024-08-09 18:01:59 +02:00
Sébastien Helleu
87a5620623
tests: fix typo in header
2024-08-09 07:24:11 +02:00
Sébastien Helleu
8c48b2f310
relay/api: fix connection to remote using an IPv6 address with square brackets ( closes #2156 )
2024-07-22 17:24:50 +02:00
Sébastien Helleu
cadd04693a
irc: add support of message 569 (whois, connecting from) ( closes #2162 )
2024-07-22 10:39:03 +02:00
Sébastien Helleu
1c04f9419c
tests: fix comment on test of IRC message 344
2024-07-22 10:38:13 +02:00
Sébastien Helleu
3828a9f987
tests: add field "request_id" in tests of relay api protocol
2024-06-30 00:22:46 +02:00
Sébastien Helleu
f8f6e100d0
relay/api: always set "body_type" and "body" (null if there is no body) in websocket frame
2024-06-29 23:59:59 +02:00
Sébastien Helleu
555632b615
relay/remote: update buffer line on event "buffer_line_data_changed"
2024-06-27 21:39:21 +02:00
Sébastien Helleu
740aa49271
irc: rename parameter -re to -raw in command /list ( closes #2124 )
2024-06-16 09:15:03 +02:00
Sébastien Helleu
3835351226
tests: add placeholder for tests on function irc_list_export
2024-06-09 23:51:00 +02:00
LuK1337
44238650bc
tests: relay: fix relay_http_parse_header function prototype
2024-06-07 12:39:40 +02:00
Sébastien Helleu
6b7137aa25
tests: reset option relay.network.websocket_allowed_origins after changing it in tests ( closes #2127 )
...
This fixes a test failure when the test changing the option is executed before
this one:
…/tests/unit/plugins/relay/api/test-relay-api-protocol.cpp:799: error: Failure in TEST(RelayApiProtocolWithClient, RecvJson)
expected <HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: Z5uTZwvwYNDm9w4HFGk26ijp/p0=
>
but was <HTTP/1.1 403 Forbidden
Content-Length: 0
>
difference starts at position 9 at: < HTTP/1.1 403 Forbid>
2024-06-07 12:33:17 +02:00
Sébastien Helleu
7cf45707ea
tests: add test on info "irc_buffer" with a valid server and a non-existing channel
2024-06-02 23:08:03 +02:00
Sébastien Helleu
26fa0ea1b8
relay: enable websocket extension "permessage-deflate" with "api" relay only
2024-06-02 09:05:40 +02:00
Sébastien Helleu
9264803bc3
relay: fix websocket permessage-deflate extension when the client doesn't send the max window bits parameters
2024-06-01 15:15:01 +02:00
Sébastien Helleu
d05df9ee21
relay: fix allocation and reinit of field "client_context_takeover" in websocket deflate structure
2024-06-01 14:42:55 +02:00
Sébastien Helleu
b38cf0e9a3
relay: use API function string_cut to truncate raw relay messages
...
This is faster than the custom function that was adding " (...) " in the middle
of the message.
2024-05-31 12:04:13 +02:00
Sébastien Helleu
e841c11b54
relay: add option relay.look.raw_messages_max_length (issue #2122 )
2024-05-29 23:07:58 +02:00
LuK1337
14187b3834
tests: relay: fix HotlistToJson test on s390x
...
1: error: Failure in TEST(RelayApiMsg, HotlistToJson)
1: expected <2024-05-26T10:29:37.716512Z>
1: but was <2024-05-26T10:29:37.000000Z>
1: difference starts at position 20 at: <T10:29:37.000000Z >
2024-05-26 14:03:04 +02:00
LuK1337
6f774a8e8e
tests: relay: add missing <string.h> include
...
Fixes build error on Fedora 40.
2024-05-26 13:58:35 +02:00
Sébastien Helleu
7684d5a3d1
tests: add test of IRC message split with newline but no server
2024-05-25 19:48:41 +02:00
Sébastien Helleu
647ca0c047
tests: remove dead assignments
2024-05-25 19:22:13 +02:00
Sébastien Helleu
1452497b32
tests: fix tests on hook_infolist_get with an invalid pointer
2024-05-25 19:13:08 +02:00
Sébastien Helleu
484abc68fc
relay: add option "autoconnect" in remote
...
This option enables auto-connection to the remote, unless command line option
`-a` (`--no-connect`) is given.
2024-05-14 22:27:11 +02:00
Sébastien Helleu
878c0a5d66
irc: allow range in commands /unban and /unquiet ( closes #2113 )
2024-05-13 23:05:39 +02:00
Sébastien Helleu
3bfb7d7f04
relay/api: add field "modes" in GET /api/buffers
2024-05-12 12:46:32 +02:00
Sébastien Helleu
cdeac1b693
relay/api: add field "input_prompt" in GET /api/buffers
2024-05-11 14:05:52 +02:00
Sébastien Helleu
5991278637
irc: rename function irc_server_buffer_set_input_multiline to irc_server_set_buffer_input_multiline
2024-05-09 15:55:31 +02:00
Sébastien Helleu
6526cc230a
relay/api: add input fields in GET /api/buffers
...
New fields returned:
- "input" (string): content of input
- "input_position" (integer): position in input (starts at 0)
- "input_multiline" (boolean): true if the buffer allows multiline input
2024-05-05 23:07:42 +02:00
Sébastien Helleu
211cd11c2a
relay/api: add parameter "lines_free" in GET /api/buffers
...
This parameter is the number of lines to return for buffers with free content.
Its default value is `0` if "lines" is set to `0`, otherwise all buffer lines
are returned.
2024-05-05 22:30:04 +02:00
Sébastien Helleu
0cf504dce7
tests: add test on relay API preflight request (OPTIONS)
2024-05-05 14:13:03 +02:00
Sébastien Helleu
6839974a07
tests: fix relay API protocol tests
2024-05-05 11:37:05 +02:00
Sébastien Helleu
586e66d6fa
tests: add placeholders for tests on relay api remote event functions
2024-05-04 11:41:23 +02:00
Sébastien Helleu
afe037c579
relay/api: add buffer keys in GET /api/buffers (issue #2066 )
2024-05-01 13:53:58 +02:00
Sébastien Helleu
b8f6468590
relay/api: add color names for groups and nicks in GET /api/buffers
2024-04-29 22:43:38 +02:00
Sébastien Helleu
de24921609
relay/api: add nicklist boolean fields in GET /api/buffers
2024-04-29 22:05:47 +02:00
Sébastien Helleu
1d9cdba58e
relay/api: rename field "nicklist" to "nicklist_root" in GET /api/buffers
2024-04-29 21:56:38 +02:00
Sébastien Helleu
4a058ae0f5
trigger: remove check of NULL pointers before calling trigger_free() (issue #865 )
2024-04-26 21:24:14 +02:00
Sébastien Helleu
9c3eda660d
relay: remove check of NULL pointers before calling relay_websocket_deflate_free() (issue #865 )
2024-04-26 21:23:39 +02:00
Sébastien Helleu
ba97a39565
relay: remove check of NULL pointers before calling relay_http_response_free() (issue #865 )
2024-04-26 21:22:49 +02:00
Sébastien Helleu
7438d2c737
alias: remove check of NULL pointers before calling alias_free() (issue #865 )
2024-04-26 21:21:48 +02:00
Sébastien Helleu
984fdb2b58
relay: add TLS connection to remote, add remote option "tls_verify"
2024-04-14 19:00:05 +02:00
90
8c3f16dbe3
core: add support for $XDG_STATE_HOME
2024-04-12 22:57:57 +02:00
Sébastien Helleu
86dea12b71
tests: fix relay/api tests on group and nick colors
2024-04-07 17:22:03 +02:00