Sébastien Helleu
e5d9e977e4
relay: add a variable to read only one time the HTTP header "X-Real-IP" in the hashtable
2015-06-13 07:39:21 +02:00
Tor Hveem
fc8f7b49dd
relay: print value of HTTP Header X-Real-IP
...
When relay plugin gets a new successfull handshake for a relay
connection using websocket it will look for HTTP header X-Real-IP which
is commonly used when proxying connections. This allows users of WeeChat
and proxy to see the client's real IP address instead of the address of
the HTTP proxy.
2015-06-11 16:50:19 +02:00
Sébastien Helleu
71dd64678c
core: add comments after some #endif
2015-04-30 21:15:30 +02:00
Sébastien Helleu
c9c8625581
relay: fix up/down keys on relay buffer ( closes #335 )
2015-02-20 22:33:48 +01:00
Anders Bergh
00730c0f9c
relay: remove v4-mapped addresses in /help relay.network.allowed_ips
...
v4-mapped addresses aren't used since commit 85339f6 .
2015-02-04 07:48:06 +01:00
Sébastien Helleu
b0117f0d18
core: add gnutls version in #if compiler directives
2015-01-21 07:50:54 +01:00
Sébastien Helleu
cf5501f69c
core: add priority in plugins to initialize them in order
...
Current order is: charset, logger, exec, trigger, aspell, alias, fifo, xfer,
irc, relay, guile/lua/perl/python/ruby/tcl, script.
2015-01-15 07:40:38 +01:00
Sébastien Helleu
a020c28ea6
core: update copyright dates
2015-01-01 09:23:23 +01:00
Sébastien Helleu
0cd2aff765
core: use https for WeeChat URLs
2014-12-13 09:16:09 +01:00
Sébastien Helleu
1f1611c916
relay: wait for message CAP END before sending join of channels and backlog to the client ( closes #223 )
2014-12-07 19:14:37 +01:00
Sébastien Helleu
a697dfcc4d
relay: rename info/infolist callbacks
2014-12-02 07:37:36 +01:00
Sébastien Helleu
1ef3237b6b
api: return value in function command(), remove WeeChat error after command callback if return code is WEECHAT_RC_ERROR
2014-11-22 08:14:29 +01:00
Sébastien Helleu
debfb57d0f
relay: send messages "_buffer_localvar_*" and "_buffer_type_changed" with sync "buffers" ( closes #191 )
2014-11-16 10:53:55 +01:00
Sébastien Helleu
cdca3094ec
relay: disable SSLv3 by default
...
The new default value for option relay.network.ssl_priorities is now
"NORMAL:-VERS-SSL3.0".
2014-11-04 20:53:04 +01:00
Sébastien Helleu
e85ae88b25
relay: don't remove relay from config when the binding fails ( closes #225 ), add options "stop" and "restart" in command /relay
2014-11-02 11:16:39 +01:00
Sébastien Helleu
134a5f53d4
relay: add option relay.network.ssl_priorities ( closes #234 )
2014-10-26 18:03:47 +01:00
Sébastien Helleu
1bda9f1077
relay: use comma separator in option relay.irc.backlog_tags, check the value of option when it is changed with /set
2014-10-08 22:25:35 +02:00
Sébastien Helleu
64348fbd6e
relay: add host in sender for IRC backlog PRIVMSG messages sent to clients
2014-10-08 22:15:23 +02:00
Sébastien Helleu
69a0b8ecf5
relay: add quotes in comment
2014-09-28 14:45:57 +02:00
Anders Bergh
85339f6083
relay: don't print ::ffff: in v4-mapped addresses.
2014-09-28 14:45:57 +02:00
Sébastien Helleu
c99df96ebd
relay: fix send of signals "relay_client_xxx" ( closes #214 )
...
The signals about relay client status changes were sent only when the client
has ended. Now it is went on any status change.
2014-09-26 04:09:25 +02:00
Sébastien Helleu
7b546bea2e
api: use microseconds instead of milliseconds in functions util_timeval_diff and util_timeval_add
2014-08-29 18:17:27 +02:00
Sébastien Helleu
795b9c9da9
relay: fix memory leak during handshake on websocket
2014-08-09 17:41:16 +02:00
Sébastien Helleu
7a76a959ec
relay: fix memory leak when receiving several lines from client (weechat protocol)
2014-08-09 17:40:18 +02:00
Sébastien Helleu
a6aee98cb1
relay: fix memory leak when receiving commands from client (weechat protocol)
2014-08-09 17:15:22 +02:00
Sébastien Helleu
4c871760d2
relay: remove dead assignment
2014-08-09 16:37:10 +02:00
Sébastien Helleu
ddd7a85f2d
relay: fix crash when an IRC "MODE" command is received from client without arguments
2014-08-09 16:14:44 +02:00
Sébastien Helleu
6295adad6d
relay: fix number of bytes sent/received on 32-bit systems
2014-08-02 16:17:30 +02:00
Sébastien Helleu
bb779271ae
relay: don't send signals "buffer_clear" and "buffer_line_added" for relay raw/list buffers to clients (weechat protocol)
2014-05-29 16:49:50 +02:00
Sébastien Helleu
faae8f470b
relay: check pointers received in hdata command to prevent crashes with bad pointers (WeeChat protocol)
2014-05-24 18:18:11 +02:00
Sébastien Helleu
3092c09bc9
relay: remove warning on /reload of relay.conf when ports are defined
2014-05-24 08:00:19 +02:00
Sébastien Helleu
432ecaa9f4
relay: add message "_buffer_cleared"
2014-05-08 14:36:23 +02:00
Sébastien Helleu
a81f79e669
relay: reformat comment
2014-05-08 11:31:03 +02:00
Tor Hveem
9e282febfd
relay: fix disconnection of client on empty websocket frames
...
WeeChat disconnects any client when a frame with length 0 is recieved.
2014-05-08 11:30:36 +02:00
Sébastien Helleu
bbea2940b7
relay: add support of Internet Explorer websocket ( closes #73 )
2014-05-07 07:39:40 +02:00
Sébastien Helleu
a311764d12
relay: add signal "relay_client_auth_ok" for irc and weechat protocols
2014-04-13 08:27:27 +02:00
Sébastien Helleu
001ea53f9d
core: fix crash on "weechat --upgrade" if no .upgrade files are found
2014-04-12 21:45:27 +02:00
Sébastien Helleu
7618fdd240
core: use lower case for CMake keywords
2014-04-12 18:00:27 +02:00
Sébastien Helleu
836ed0bbfe
relay: add messages "_buffer_hidden" and "_buffer_unhidden"
2014-04-05 16:53:48 +02:00
Sébastien Helleu
2a9bd75eee
core: close .upgrade files before deleting them after /upgrade
2014-04-03 14:23:31 +02:00
Sebastien Helleu
9b380a935b
core: fix use of reserved C identifiers in headers ( closes #31 )
2014-03-19 10:39:13 +01:00
Sebastien Helleu
cd66b459de
relay: search buffers by full name
2014-03-11 15:30:51 +01:00
Sebastien Helleu
7a191c2de1
relay: fix crash on /upgrade received from a client (weechat protocol)
...
Some commands like /upgrade sent by relay client can cause problems, because
they were executed immediately (while relay code is running). The /upgrade
command unloads all plugins, so the result is unpredictable (it can cause a
crash).
This commit adds a timer (1 millisecond) to delay the execution of command
after we go back in the WeeChat main loop.
2014-03-07 09:22:21 +01:00
Sebastien Helleu
2d7778292a
relay: add info "relay_client_count" with optional status name as argument
...
Use in evaluated strings (for example in /eval or triggers):
- "${info:relay_client_count}": total number of relay clients (any status)
With a specific status:
- "${info:relay_client_count,connecting}"
- "${info:relay_client_count,waiting_auth}"
- "${info:relay_client_count,connected}"
- "${info:relay_client_count,auth_failed}"
- "${info:relay_client_count,disconnected}"
2014-03-05 11:49:25 +01:00
Sebastien Helleu
0995eb334f
relay: add signals "relay_client_xxx" for client status changes ( closes #2 )
...
New signals:
- relay_client_connecting
- relay_client_waiting_auth
- relay_client_connected
- relay_client_auth_failed
- relay_client_disconnected
2014-03-05 11:43:32 +01:00
Sebastien Helleu
4c3a10506a
relay: fix size used in a snprintf
2014-02-28 11:40:55 +01:00
Sebastien Helleu
fdfee08cf8
relay: add option relay.network.clients_purge_delay
2014-02-23 20:32:42 +01:00
Sebastien Helleu
897bb0950c
relay: fix freeze after /upgrade when many disconnected clients still exist
...
The hooks for the WeeChat disconnected clients are not created again
after /upgrade (they were removed on client disconnection, so there is
no reason to create them again).
The hooks like nicklist sync are called often (for example on irc
disconnection), which can cause long freeze if many WeeChat disconnected
clients exist in relay.
2014-02-23 13:07:45 +01:00
Sebastien Helleu
60456c31e9
relay: remove dead assignment in function relay_client_recv_cb
2014-02-22 15:13:26 +01:00
Sebastien Helleu
e4493a1b0c
relay: remove dead assignment in function relay_irc_get_line_info
2014-02-22 14:51:59 +01:00