1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 07:16:37 +02:00

relay: don't remove relay from config when the binding fails (closes #225), add options "stop" and "restart" in command /relay

This commit is contained in:
Sébastien Helleu
2014-11-02 11:16:39 +01:00
parent a2c7420262
commit e85ae88b25
21 changed files with 587 additions and 276 deletions
+34 -26
View File
@@ -3,44 +3,52 @@
----
/relay list|listfull|listrelay
add [ipv4.][ipv6.][ssl.]<protocol.name> <port>
del [ipv4.][ipv6.][ssl.]<protocol.name>
add <name> <port>
del|stop|restart <name>
raw
sslcertkey
list: Auflistung der Relay-Clients (nur aktive Relays)
listfull: detaillierte Auflistung der Relay-Clients (alle Relays)
listrelay: Auflistung der Relays (Name und Port)
add: fügt ein Relay, für ein Protokoll + Name, hinzu
del: entfernt Relay für ein Protokoll + Name
ipv4: erzwingt die Nutzung von IPv4
ipv6: erzwingt die Nutzung von IPv6
ssl: aktiviert SSL
protocol.name: Protokoll und Name des Relay:
- Protokoll "irc": Name des Servers welcher geteilt werden soll (optional). Wird kein Name angegeben, dann muss der Client den Servernamen mittels Befehl "PASS" anfordern. Format: "PASS Server:Passwort")
- Protokoll "weechat" (Name wird nicht unterstützt)
port: Port den das Relay nutzen soll
raw: öffnet Buffer mit RAW-Relay Daten
sslcertkey: setzt SSL Zertifikat/Schlüssel mittels Eintrag in Option relay.network.ssl_cert_key
list: list relay clients (only active relays)
listfull: list relay clients (verbose, all relays)
listrelay: list relays (name and port)
add: add a relay (listen on a port)
del: remove a relay (clients remain connected)
stop: close the server socket (clients remain connected)
restart: close the server socket and listen again on port (clients remain connected)
name: relay name (see format below)
port: port used for relay
raw: open buffer with raw Relay data
sslcertkey: set SSL certificate/key using path in option relay.network.ssl_cert_key
Ohne Angabe von Argumenten werden alle Relay-Clients in einem neuen Buffer dargestellt.
Relay name is: [ipv4.][ipv6.][ssl.]<protocol.name>
ipv4: force use of IPv4
ipv6: force use of IPv6
ssl: enable SSL
protocol.name: protocol and name to relay:
- protocol "irc": name is the server to share (optional, if not given, the server name must be sent by client in command "PASS", with format: "PASS server:password")
- protocol "weechat" (name is not used)
Beispiele:
IRC Proxy für Server "freenode":
The "irc" protocol allows any IRC client (including WeeChat itself) to connect on the port.
The "weechat" protocol allows a remote interface to connect on the port, see the list here: http://weechat.org/download/
Without argument, this command opens buffer with list of relay clients.
Examples:
irc proxy, for server "freenode":
/relay add irc.freenode 8000
IRC Proxy, für Server "freenode", mit SSL:
irc proxy, for server "freenode", with SSL:
/relay add ssl.irc.freenode 8001
IRC Proxy für alle Server (Client wählt aus), mit SSL:
irc proxy, for all servers (client will choose), with SSL:
/relay add ssl.irc 8002
WeeChat Protokoll:
weechat protocol:
/relay add weechat 9000
WeeChat Protokoll, mit SSL:
weechat protocol with SSL:
/relay add ssl.weechat 9001
WeeChat Protokoll, mit SSL, nur IPv4 nutzen:
weechat protocol with SSL, using only IPv4:
/relay add ipv4.ssl.weechat 9001
WeeChat Protokoll, mit SSL, nur IPv6 nutzen:
weechat protocol with SSL, using only IPv6:
/relay add ipv6.ssl.weechat 9001
WeeChat Protokoll, mit SSL, mit IPv4 + IPv6:
weechat protocol with SSL, using IPv4 + IPv6:
/relay add ipv4.ipv6.ssl.weechat 9001
----