mirror of
https://github.com/weechat/weechat.git
synced 2026-07-05 01:03:14 +02:00
relay: evaluate path of unix socket relay
This commit is contained in:
+10
-10
@@ -3194,26 +3194,26 @@ websocket = new WebSocket("ws://server.com:9000/weechat");
|
||||
The port (9000 in example) is the port defined in Relay plugin.
|
||||
The URI must always end with "/weechat" (for _irc_ and _weechat_ protocols).
|
||||
|
||||
[[relay_unixsocket]]
|
||||
[[relay_unix_socket]]
|
||||
==== UNIX domain sockets
|
||||
|
||||
Using the protocol option "unix" with the "/relay add" command, you can
|
||||
listen using any protocol on a UNIX domain socket at a given path. For exmaple:
|
||||
Using the protocol option "unix" with the "/relay add" command, you can listen
|
||||
using any protocol on a UNIX domain socket at a given path. For example:
|
||||
|
||||
----
|
||||
/relay add unix.weechat /tmp/weesock
|
||||
/relay add unix.weechat %h/relay_socket
|
||||
----
|
||||
|
||||
will allow clients to connect using the WeeChat protocol to /tmp/weesock. This
|
||||
is particularly useful to allow SSH forwarding for relay clients, when other
|
||||
ports cannot be opened. Using OpenSSH:
|
||||
This will allow clients to connect using the WeeChat protocol to
|
||||
_~/.weechat/relay_socket_. This is particularly useful to allow SSH forwarding
|
||||
for relay clients, when other ports cannot be opened. Using OpenSSH:
|
||||
|
||||
----
|
||||
$ ssh -L9000:/tmp/weesock foo_host
|
||||
$ ssh -L9000:/home/xxx/.weechat/relay_socket foo_host
|
||||
----
|
||||
|
||||
will then allow for local relay clients to connect on port 9000 to a WeeChat
|
||||
instance running on "foo_host".
|
||||
This will then allow for local relay clients to connect on port 9000 to a
|
||||
WeeChat instance running on "foo_host".
|
||||
|
||||
[[relay_commands]]
|
||||
==== Commands
|
||||
|
||||
Reference in New Issue
Block a user