Sébastien Helleu
c4230ecece
relay: remove local variable ptr_server from function relay_config_check_path_cb (not needed)
2019-05-12 21:39:22 +02:00
Sébastien Helleu
c1af2702b8
relay: improve message displayed on a new client
2019-05-12 21:39:22 +02:00
Sébastien Helleu
78fda01dd5
relay: improve message displayed when the relay is removed
2019-05-12 21:39:22 +02:00
Sébastien Helleu
9d04bc5801
relay: improve message displayed when the relay is added
2019-05-12 21:39:22 +02:00
Sébastien Helleu
abe85999d8
relay: rename function relay_config_create_option_port to relay_config_create_option_port_path
2019-05-12 21:39:22 +02:00
Sébastien Helleu
df3848e1f0
relay: fix code style
2019-05-12 21:39:22 +02:00
Sébastien Helleu
c78fb8dc7c
relay: rename variable "un" to "unix_socket"
2019-05-12 18:52:22 +02:00
Ryan Farley
ffefd1b785
relay: add UNIX socket support ( closes #733 )
2019-05-12 18:51:13 +02:00
Ryan Farley
8df3ad3d26
cmake: allow custom libdir ( fix #1341 )
...
Allows for custom LIBDIR to specified with cmake builds. WEECHAT_LIBDIR
is used for a custom Weechat directory, or set from LIBDIR (as LIBDIR
used to be set).
2019-04-25 16:53:55 -05:00
Sébastien Helleu
3d95217745
api: return allocated string in hook_info callback and function info_get
2019-04-13 08:42:45 +02:00
Sébastien Helleu
da43e95c75
relay: use option "delay" in call to command_options ( closes #1327 )
...
This fixes a crash when sending "/plugin reload relay" from a relay client.
2019-03-28 22:07:25 +01:00
Sébastien Helleu
2612adf899
core: add CMake option "ENABLE_CODE_COVERAGE" to compile with code coverage options
...
This option is OFF by default and should be enabled only for tests, to measure
test coverage.
2019-03-24 09:38:43 +01:00
Sébastien Helleu
78cabc2e06
relay: fix compilation warning when gnutls is not found
2019-03-12 22:26:55 +01:00
Sébastien Helleu
92e176ab89
relay: use empty value by default for option relay.weechat.commands (issue #928 )
...
The relay client is supposed to be safe by default, and the relay connection
should be protected by the different ways (restriction on IP address, SSL,
strong password, Time-based One-Time Password, local bind address and use of
SSH tunnel…).
So this option lets the user add extra security by allowing only some
commands (whitelist), or allowing any commands except a list of given
commands (blacklist).
2019-03-11 21:12:23 +01:00
Sébastien Helleu
e44c4904c3
relay: add forbidden commands /key and /trigger in weechat protocol (issue #928 )
2019-03-10 22:58:50 +01:00
Sébastien Helleu
508f224af9
relay: add forbidden commands /wait and /repeat in weechat protocol (issue #928 )
2019-03-10 18:29:22 +01:00
Sébastien Helleu
2b70d71aa1
core: replace argument "keep_eol" by "flags" in function string_split ( closes #1322 )
2019-03-10 18:29:16 +01:00
Sébastien Helleu
dd44c1db16
relay: add extra forbidden commands in weechat protocol (issue #928 )
...
Commands were already forbidden (option relay.weechat.commands):
- /exec
- /upgrade
- /quit
These extra commands are now forbidden by default:
- /fset
- /set
- /unset
- /plugin
- /script
- /python
- /perl
- /ruby
- /lua
- /tcl
- /guile
- /javascript
- /php
- /secure
2019-03-09 17:54:06 +01:00
Sébastien Helleu
2f5aa3b509
core: use bitwise shift operator to define flag constants
2019-03-02 11:09:52 +01:00
Sébastien Helleu
d290de2cba
relay: add option relay.weechat.commands ( closes #928 )
2019-02-28 20:24:25 +01:00
Sébastien Helleu
471f9c61da
relay: remove obsolete comment
2019-02-24 16:13:04 +01:00
Sébastien Helleu
c869aa3809
relay: fix crash on /upgrade when the real IP is not set ( closes #1294 )
2019-01-28 20:37:38 +01:00
Sébastien Helleu
2b0057239b
core: update copyright dates
2019-01-01 15:40:51 +01:00
Sébastien Helleu
4034d07d5a
core: use https for links in comments
2018-12-01 08:21:49 +01:00
Sébastien Helleu
342261d35b
core: use https for all links where secured http is supported
2018-11-29 23:18:55 +01:00
Sébastien Helleu
4712d0bb06
core: use https for links to GNU GPL license
2018-11-29 23:16:07 +01:00
Sébastien Helleu
de8d640958
relay: add support of close frame in websocket connection ( closes #1281 )
2018-11-12 20:43:48 +01:00
Sébastien Helleu
ba3d805167
Merge pull request #1273 from half-duplex/master
...
Fix regex in relay.network.allowed_ips doc
2018-11-04 16:46:11 +01:00
Sébastien Helleu
738535e7f6
relay: add support of Time-based One-Time Password (TOTP) as second authentication factor in weechat protocol
2018-11-04 14:50:53 +01:00
Sébastien Helleu
ed3f281ba9
api: add functions string_base_{encode,decode}, remove functions string_{encode,decode}_base64
2018-11-04 14:49:11 +01:00
Sébastien Helleu
8848b0e22a
api: return integer in function string_encode_base64
2018-11-02 14:09:23 +01:00
Trevor Bergeron
9121e5812c
Fix regex in relay allowed_ips doc
2018-10-23 00:33:01 -04:00
Sébastien Helleu
ecdbaef288
relay: remove useless test on length
2018-10-01 22:59:05 +02:00
Sébastien Helleu
4b58ea37c0
relay: remove useless test on num_sent
2018-10-01 22:58:25 +02:00
Sébastien Helleu
d6d8b9094f
irc: replace call to gmtime by gmtime_r
2018-10-01 22:22:06 +02:00
Sébastien Helleu
8abd05fe3d
core: replace "long unsigned int" by "unsigned long"
2018-10-01 22:21:25 +02:00
Sébastien Helleu
e28cb00106
relay: add real IP in client description ( closes #1256 )
2018-09-30 09:59:45 +02:00
Sébastien Helleu
7b8faf6d97
relay: fix URL to the page with remote interfaces in /help relay
2018-09-09 10:07:16 +02:00
Sébastien Helleu
bf48efffec
relay: fix compiler warnings on calls to snprintf
2018-07-13 21:25:07 +02:00
Sébastien Helleu
5decae145f
relay: fix socket creation for relay server on OpenBSD ( closes #1213 )
...
The socket option IPV6_V6ONLY is not needed on OpenBSD and must not be set (it
is read-only).
2018-07-01 15:39:34 +02:00
Sébastien Helleu
744ded04bd
relay: add filtering on protocol in info "relay_client_count" (issue #1206 )
2018-06-14 21:57:27 +02:00
Sébastien Helleu
eb8043f2b4
relay: remove unneeded check on variable irc_argv
...
The variable "irc_argv" is always set if irc_argc > 0.
2018-05-19 08:14:56 +02:00
Sébastien Helleu
ec169f535d
core: reinitialize config file pointer to NULL after an error on section creation
2018-01-14 21:47:18 +01:00
Sébastien Helleu
7ee88fb46c
core: fix some styles
2018-01-07 09:11:45 +01:00
Sébastien Helleu
ed4837b2f6
core: update copyright dates
2018-01-05 00:54:18 +01:00
Sébastien Helleu
5aab494dd6
core, plugins: check return code of strftime function
2017-09-23 15:06:28 +02:00
Sébastien Helleu
aeeec38d6f
core: fix cast of time_t (to "long long" instead of "long") ( closes #1051 )
2017-08-12 18:36:45 +02:00
Sébastien Helleu
9bad3f44db
core: remove value for first #define in headers, add "PLUGIN" in plugin headers
2017-08-10 20:05:16 +02:00
Sébastien Helleu
cf51849ac5
relay: fix send of "PART" command in backlog (irc protocol)
2017-07-23 16:13:00 +02:00
Sébastien Helleu
b95da03f3a
relay: end capability negociation if CAP REQ is received without arguments (issue #1040 )
...
This fixes a bug with clients like Atomic which are sending "CAP REQ :".
2017-07-23 15:47:06 +02:00