mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 22:36:38 +02:00
relay: enable websocket extension "permessage-deflate" with "api" relay only
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
|
||||
## Version 4.4.0 (under dev)
|
||||
|
||||
### Changed
|
||||
|
||||
- relay: enable websocket extension "permessage-deflate" with "api" relay only
|
||||
|
||||
### Added
|
||||
|
||||
- relay: add option relay.network.websocket_permessage_deflate
|
||||
|
||||
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-06-01 13:02+0200\n"
|
||||
"POT-Creation-Date: 2024-06-02 09:01+0200\n"
|
||||
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
|
||||
"Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -14602,12 +14602,12 @@ msgstr ""
|
||||
|
||||
msgid ""
|
||||
"enable websocket extension \"permessage-deflate\" to compress websocket "
|
||||
"frames, with \"api\" and \"weechat\" protocols; if disabled, WeeChat (as "
|
||||
"server) will not enable permessage-deflate even if the client supports it, "
|
||||
"and when connecting to a remote WeeChat (api relay only), permessage-deflate "
|
||||
"support is not advertised by WeeChat; it is recommended to keep this option "
|
||||
"enabled, and you should disable it only if you have troubles with this "
|
||||
"extension, either with WeeChat or the client"
|
||||
"frames (\"api\" protocol only); if disabled, WeeChat (as server) will not "
|
||||
"enable permessage-deflate even if the client supports it, and when "
|
||||
"connecting to a remote WeeChat (api relay only), permessage-deflate support "
|
||||
"is not advertised by WeeChat; it is recommended to keep this option enabled, "
|
||||
"and you should disable it only if you have troubles with this extension, "
|
||||
"either with WeeChat or the client"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
|
||||
@@ -26,7 +26,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-06-01 13:02+0200\n"
|
||||
"POT-Creation-Date: 2024-06-02 09:01+0200\n"
|
||||
"PO-Revision-Date: 2024-05-31 20:32+0200\n"
|
||||
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
|
||||
"Language-Team: German <kde-i18n-de@kde.org>\n"
|
||||
@@ -16075,12 +16075,12 @@ msgstr ""
|
||||
|
||||
msgid ""
|
||||
"enable websocket extension \"permessage-deflate\" to compress websocket "
|
||||
"frames, with \"api\" and \"weechat\" protocols; if disabled, WeeChat (as "
|
||||
"server) will not enable permessage-deflate even if the client supports it, "
|
||||
"and when connecting to a remote WeeChat (api relay only), permessage-deflate "
|
||||
"support is not advertised by WeeChat; it is recommended to keep this option "
|
||||
"enabled, and you should disable it only if you have troubles with this "
|
||||
"extension, either with WeeChat or the client"
|
||||
"frames (\"api\" protocol only); if disabled, WeeChat (as server) will not "
|
||||
"enable permessage-deflate even if the client supports it, and when "
|
||||
"connecting to a remote WeeChat (api relay only), permessage-deflate support "
|
||||
"is not advertised by WeeChat; it is recommended to keep this option enabled, "
|
||||
"and you should disable it only if you have troubles with this extension, "
|
||||
"either with WeeChat or the client"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
|
||||
@@ -22,7 +22,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-06-01 13:02+0200\n"
|
||||
"POT-Creation-Date: 2024-06-02 09:01+0200\n"
|
||||
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
|
||||
"Last-Translator: Santiago Forero <santiago@forero.xyz>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -14931,12 +14931,12 @@ msgstr ""
|
||||
|
||||
msgid ""
|
||||
"enable websocket extension \"permessage-deflate\" to compress websocket "
|
||||
"frames, with \"api\" and \"weechat\" protocols; if disabled, WeeChat (as "
|
||||
"server) will not enable permessage-deflate even if the client supports it, "
|
||||
"and when connecting to a remote WeeChat (api relay only), permessage-deflate "
|
||||
"support is not advertised by WeeChat; it is recommended to keep this option "
|
||||
"enabled, and you should disable it only if you have troubles with this "
|
||||
"extension, either with WeeChat or the client"
|
||||
"frames (\"api\" protocol only); if disabled, WeeChat (as server) will not "
|
||||
"enable permessage-deflate even if the client supports it, and when "
|
||||
"connecting to a remote WeeChat (api relay only), permessage-deflate support "
|
||||
"is not advertised by WeeChat; it is recommended to keep this option enabled, "
|
||||
"and you should disable it only if you have troubles with this extension, "
|
||||
"either with WeeChat or the client"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
|
||||
@@ -21,8 +21,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-06-01 13:02+0200\n"
|
||||
"PO-Revision-Date: 2024-06-01 13:04+0200\n"
|
||||
"POT-Creation-Date: 2024-06-02 09:01+0200\n"
|
||||
"PO-Revision-Date: 2024-06-02 09:01+0200\n"
|
||||
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
"Language: fr\n"
|
||||
@@ -15723,21 +15723,21 @@ msgstr ""
|
||||
|
||||
msgid ""
|
||||
"enable websocket extension \"permessage-deflate\" to compress websocket "
|
||||
"frames, with \"api\" and \"weechat\" protocols; if disabled, WeeChat (as "
|
||||
"server) will not enable permessage-deflate even if the client supports it, "
|
||||
"and when connecting to a remote WeeChat (api relay only), permessage-deflate "
|
||||
"support is not advertised by WeeChat; it is recommended to keep this option "
|
||||
"enabled, and you should disable it only if you have troubles with this "
|
||||
"extension, either with WeeChat or the client"
|
||||
"frames (\"api\" protocol only); if disabled, WeeChat (as server) will not "
|
||||
"enable permessage-deflate even if the client supports it, and when "
|
||||
"connecting to a remote WeeChat (api relay only), permessage-deflate support "
|
||||
"is not advertised by WeeChat; it is recommended to keep this option enabled, "
|
||||
"and you should disable it only if you have troubles with this extension, "
|
||||
"either with WeeChat or the client"
|
||||
msgstr ""
|
||||
"activer l'extension websocket \"permessage-deflate\" pour compresser les "
|
||||
"paquets websocket, avec les protocoles \"api\" et \"weechat\" ; si "
|
||||
"désactivé, WeeChat (en tant que serveur) n'activera pas permessage-deflate "
|
||||
"même si le client le supporte, et lors d'une connexion à un WeeChat distant "
|
||||
"(relai api seulement), le support permessage-deflate ne sera pas annoncé par "
|
||||
"WeeChat ; il est recommandé de garder cette option activée, et vous ne "
|
||||
"devriez la désactiver que si vous rencontrez des problèmes avec cette "
|
||||
"extension, avec WeeChat ou le client"
|
||||
"paquets websocket (protocole \"api\" seulement) ; si désactivé, WeeChat (en "
|
||||
"tant que serveur) n'activera pas permessage-deflate même si le client le "
|
||||
"supporte, et lors d'une connexion à un WeeChat distant (relai api "
|
||||
"seulement), le support permessage-deflate ne sera pas annoncé par WeeChat ; "
|
||||
"il est recommandé de garder cette option activée, et vous ne devriez la "
|
||||
"désactiver que si vous rencontrez des problèmes avec cette extension, avec "
|
||||
"WeeChat ou le client"
|
||||
|
||||
msgid ""
|
||||
"maximum number of minutes in backlog per IRC channel (0 = unlimited, "
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-06-01 13:02+0200\n"
|
||||
"POT-Creation-Date: 2024-06-02 09:01+0200\n"
|
||||
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
|
||||
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -13973,12 +13973,12 @@ msgstr ""
|
||||
|
||||
msgid ""
|
||||
"enable websocket extension \"permessage-deflate\" to compress websocket "
|
||||
"frames, with \"api\" and \"weechat\" protocols; if disabled, WeeChat (as "
|
||||
"server) will not enable permessage-deflate even if the client supports it, "
|
||||
"and when connecting to a remote WeeChat (api relay only), permessage-deflate "
|
||||
"support is not advertised by WeeChat; it is recommended to keep this option "
|
||||
"enabled, and you should disable it only if you have troubles with this "
|
||||
"extension, either with WeeChat or the client"
|
||||
"frames (\"api\" protocol only); if disabled, WeeChat (as server) will not "
|
||||
"enable permessage-deflate even if the client supports it, and when "
|
||||
"connecting to a remote WeeChat (api relay only), permessage-deflate support "
|
||||
"is not advertised by WeeChat; it is recommended to keep this option enabled, "
|
||||
"and you should disable it only if you have troubles with this extension, "
|
||||
"either with WeeChat or the client"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-06-01 13:02+0200\n"
|
||||
"POT-Creation-Date: 2024-06-02 09:01+0200\n"
|
||||
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
|
||||
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -14971,12 +14971,12 @@ msgstr ""
|
||||
|
||||
msgid ""
|
||||
"enable websocket extension \"permessage-deflate\" to compress websocket "
|
||||
"frames, with \"api\" and \"weechat\" protocols; if disabled, WeeChat (as "
|
||||
"server) will not enable permessage-deflate even if the client supports it, "
|
||||
"and when connecting to a remote WeeChat (api relay only), permessage-deflate "
|
||||
"support is not advertised by WeeChat; it is recommended to keep this option "
|
||||
"enabled, and you should disable it only if you have troubles with this "
|
||||
"extension, either with WeeChat or the client"
|
||||
"frames (\"api\" protocol only); if disabled, WeeChat (as server) will not "
|
||||
"enable permessage-deflate even if the client supports it, and when "
|
||||
"connecting to a remote WeeChat (api relay only), permessage-deflate support "
|
||||
"is not advertised by WeeChat; it is recommended to keep this option enabled, "
|
||||
"and you should disable it only if you have troubles with this extension, "
|
||||
"either with WeeChat or the client"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-06-01 13:02+0200\n"
|
||||
"POT-Creation-Date: 2024-06-02 09:01+0200\n"
|
||||
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
|
||||
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
|
||||
"Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
|
||||
@@ -15431,12 +15431,12 @@ msgstr ""
|
||||
|
||||
msgid ""
|
||||
"enable websocket extension \"permessage-deflate\" to compress websocket "
|
||||
"frames, with \"api\" and \"weechat\" protocols; if disabled, WeeChat (as "
|
||||
"server) will not enable permessage-deflate even if the client supports it, "
|
||||
"and when connecting to a remote WeeChat (api relay only), permessage-deflate "
|
||||
"support is not advertised by WeeChat; it is recommended to keep this option "
|
||||
"enabled, and you should disable it only if you have troubles with this "
|
||||
"extension, either with WeeChat or the client"
|
||||
"frames (\"api\" protocol only); if disabled, WeeChat (as server) will not "
|
||||
"enable permessage-deflate even if the client supports it, and when "
|
||||
"connecting to a remote WeeChat (api relay only), permessage-deflate support "
|
||||
"is not advertised by WeeChat; it is recommended to keep this option enabled, "
|
||||
"and you should disable it only if you have troubles with this extension, "
|
||||
"either with WeeChat or the client"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
|
||||
@@ -22,7 +22,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-06-01 13:02+0200\n"
|
||||
"POT-Creation-Date: 2024-06-02 09:01+0200\n"
|
||||
"PO-Revision-Date: 2024-06-01 22:06+0200\n"
|
||||
"Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -813,8 +813,8 @@ msgstr "%sNie można ustawić opcji \"%s\" dla proxy \"%s\""
|
||||
msgid ""
|
||||
"%sYou must confirm /%s command with extra argument \"-yes\" (see /help %s)"
|
||||
msgstr ""
|
||||
"%sMusisz potwierdzić użycie komendy /%s dodatkowym argumentem \"-"
|
||||
"yes\" (zobacz /help %s)"
|
||||
"%sMusisz potwierdzić użycie komendy /%s dodatkowym argumentem \"-yes\" "
|
||||
"(zobacz /help %s)"
|
||||
|
||||
#, c-format
|
||||
msgid "Options reloaded from %s"
|
||||
@@ -2044,8 +2044,8 @@ msgstr ""
|
||||
"*, /, //, %, **)"
|
||||
|
||||
msgid ""
|
||||
" - ${random:min,max}: a random integer number between \"min\" and "
|
||||
"\"max\" (inclusive)"
|
||||
" - ${random:min,max}: a random integer number between \"min\" and \"max\" "
|
||||
"(inclusive)"
|
||||
msgstr ""
|
||||
" - ${random:min,max}: losowa liczba całkowita z przedziału od „min” do "
|
||||
"„max” (włącznie)"
|
||||
@@ -4741,8 +4741,8 @@ msgstr ""
|
||||
"\"-yes\" (zobacz /help quit)"
|
||||
|
||||
msgid ""
|
||||
"if set, /upgrade command must be confirmed with extra argument \"-"
|
||||
"yes\" (see /help upgrade)"
|
||||
"if set, /upgrade command must be confirmed with extra argument \"-yes\" "
|
||||
"(see /help upgrade)"
|
||||
msgstr ""
|
||||
"jeśli ustawione, komenda /upgrade musi być potwierdzona dodatkowym "
|
||||
"argumentem \"-yes\" (zobacz /help upgrade)"
|
||||
@@ -6672,15 +6672,15 @@ msgid "bar position (bottom, top, left, right)"
|
||||
msgstr "pozycja paska (bottom (dół), top (góra), left (lewo), right (prawo))"
|
||||
|
||||
msgid ""
|
||||
"bar filling direction (\"horizontal\" (from left to right) or "
|
||||
"\"vertical\" (from top to bottom)) when bar position is top or bottom"
|
||||
"bar filling direction (\"horizontal\" (from left to right) or \"vertical\" "
|
||||
"(from top to bottom)) when bar position is top or bottom"
|
||||
msgstr ""
|
||||
"kierunek wypełniania paska (\"horizontal\" (od lewej do prawej) lub "
|
||||
"\"vertical\" (od góry do dołu)), kiedy pozycja paska to góra albo dół"
|
||||
|
||||
msgid ""
|
||||
"bar filling direction (\"horizontal\" (from left to right) or "
|
||||
"\"vertical\" (from top to bottom)) when bar position is left or right"
|
||||
"bar filling direction (\"horizontal\" (from left to right) or \"vertical\" "
|
||||
"(from top to bottom)) when bar position is left or right"
|
||||
msgstr ""
|
||||
"kierunek wypełniania paska (\"horizontal\" (od lewej do prawej) lub "
|
||||
"\"vertical\" (od góry do dołu)), kiedy pozycja paska to lewo albo prawo"
|
||||
@@ -6719,9 +6719,9 @@ msgid "separator line between bar and other bars/windows"
|
||||
msgstr "separator pomiędzy paskiem a innymi paskami/oknami"
|
||||
|
||||
msgid ""
|
||||
"items of bar, they can be separated by comma (space between items) or \"+"
|
||||
"\" (glued items); special syntax \"@buffer:item\" can be used to force "
|
||||
"buffer used when displaying the bar item"
|
||||
"items of bar, they can be separated by comma (space between items) or \"+\" "
|
||||
"(glued items); special syntax \"@buffer:item\" can be used to force buffer "
|
||||
"used when displaying the bar item"
|
||||
msgstr ""
|
||||
"elementy paska, mogą być oddzielone przecinkiem (spacja pomiędzy elementami) "
|
||||
"lub \"+\" (skleja elementy); specjalna składnia \"@buffer:item\" może być "
|
||||
@@ -7956,8 +7956,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"powłoka używana przez komendę \"/exec -sh\"; może to być nazwa powłoki jeśli "
|
||||
"znajduje się ona w PATH (na przykład \"bash\") lub ścieżka absolutna (na "
|
||||
"przykład \"/bin/bash\"); jeśli wartość jest pusta, zostanie użyte "
|
||||
"\"sh\" (uwaga: zawartość jest przetwarzana, zobacz /help eval)"
|
||||
"przykład \"/bin/bash\"); jeśli wartość jest pusta, zostanie użyte \"sh\" "
|
||||
"(uwaga: zawartość jest przetwarzana, zobacz /help eval)"
|
||||
|
||||
msgid "text color for a finished command flag in list of commands"
|
||||
msgstr "kolor tekstu dla flagi zakończonej komendy na liście komend"
|
||||
@@ -8380,8 +8380,8 @@ msgid " - ${description}: option description (translated)"
|
||||
msgstr " - ${description}: opis opcji (przetłumaczony)"
|
||||
|
||||
msgid ""
|
||||
" - ${description2}: option description (translated), \"(no "
|
||||
"description)\" (translated) if there's no description"
|
||||
" - ${description2}: option description (translated), \"(no description)\" "
|
||||
"(translated) if there's no description"
|
||||
msgstr ""
|
||||
" - ${description2}: opis opcji (przetłumaczony), „(brak opisu)” jeśli nie "
|
||||
"ma opisu"
|
||||
@@ -9046,13 +9046,13 @@ msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"%s%s: if you want to add a standard server, use the command \"/server "
|
||||
"add\" (see /help server); if you really want to add a temporary server (NOT "
|
||||
"%s%s: if you want to add a standard server, use the command \"/server add\" "
|
||||
"(see /help server); if you really want to add a temporary server (NOT "
|
||||
"SAVED), turn on the option irc.look.temporary_servers"
|
||||
msgstr ""
|
||||
"%s%s: jeśli chcesz dodać standardowy serwer, użyj komendy \"/server "
|
||||
"add\" (zobacz /help server); jeśli naprawdę chcesz utworzyć serwer "
|
||||
"tymczasowy (NIE ZAPISANY), włącz opcję irc.look.temporary_servers"
|
||||
"%s%s: jeśli chcesz dodać standardowy serwer, użyj komendy \"/server add\" "
|
||||
"(zobacz /help server); jeśli naprawdę chcesz utworzyć serwer tymczasowy (NIE "
|
||||
"ZAPISANY), włącz opcję irc.look.temporary_servers"
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: \"%s\" command can not be executed on a server buffer"
|
||||
@@ -11060,9 +11060,9 @@ msgid ""
|
||||
"file with ECC private key for mechanism \"ecdsa-nist256p-challenge\" (path "
|
||||
"is evaluated, see function string_eval_path_home in plugin API reference)"
|
||||
msgstr ""
|
||||
"plik z kluczem prywatnym ECC dla mechanizmu \"ecdsa-nist256p-"
|
||||
"challenge\" (ścieżka jest przetwarzana, zobacz funkcję string_eval_path_home "
|
||||
"w opisie API wtyczek)"
|
||||
"plik z kluczem prywatnym ECC dla mechanizmu \"ecdsa-nist256p-challenge\" "
|
||||
"(ścieżka jest przetwarzana, zobacz funkcję string_eval_path_home w opisie "
|
||||
"API wtyczek)"
|
||||
|
||||
msgid "timeout (in seconds) before giving up SASL authentication"
|
||||
msgstr ""
|
||||
@@ -14308,19 +14308,19 @@ msgstr "%s%s: nie można zwolnić interpretera"
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"%s%s: too few arguments received from client %s%s%s for resource "
|
||||
"\"%s\" (received: %d arguments, expected: at least %d)"
|
||||
"%s%s: too few arguments received from client %s%s%s for resource \"%s\" "
|
||||
"(received: %d arguments, expected: at least %d)"
|
||||
msgstr ""
|
||||
"%s%s: otrzymano za mało argumentów od klienta %s%s%s dla zasobu "
|
||||
"„%s” (otrzymano: %d argumentów, spodziewano się: przynajmniej %d)"
|
||||
"%s%s: otrzymano za mało argumentów od klienta %s%s%s dla zasobu „%s” "
|
||||
"(otrzymano: %d argumentów, spodziewano się: przynajmniej %d)"
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"%s%s: too many arguments received from client %s%s%s for resource "
|
||||
"\"%s\" (received: %d arguments, expected: at most %d)"
|
||||
"%s%s: too many arguments received from client %s%s%s for resource \"%s\" "
|
||||
"(received: %d arguments, expected: at most %d)"
|
||||
msgstr ""
|
||||
"%s%s: otrzymano za mało argumentów od klienta %s%s%s dla zasobu "
|
||||
"„%s” (otrzymano: %d argumentów, spodziewano się: najwyżej %d)"
|
||||
"%s%s: otrzymano za mało argumentów od klienta %s%s%s dla zasobu „%s” "
|
||||
"(otrzymano: %d argumentów, spodziewano się: najwyżej %d)"
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: failed to execute route \"%s %s\" for client %s%s%s"
|
||||
@@ -14339,18 +14339,15 @@ msgstr ""
|
||||
"lokalne api API %s (WeeChat %s)"
|
||||
|
||||
#, c-format
|
||||
#| msgid "%s%s: invalid trigger name: \"%s\""
|
||||
msgid "%sremote[%s]: invalid data received from remote relay: \"%s\""
|
||||
msgstr ""
|
||||
"%sremote[%s]: otrzymano niepoprawne dane od zdalnego pośrednika: \"%s\""
|
||||
|
||||
#, c-format
|
||||
#| msgid "%s%s: failed to copy trigger \"%s\""
|
||||
msgid "%sremote[%s]: callback failed for body type \"%s\""
|
||||
msgstr "%sremote[%s]: callback dla \"%s\" nie powiódł się"
|
||||
|
||||
#, c-format
|
||||
#| msgid "%sremote[%s]: connection refused"
|
||||
msgid "remote[%s]: disconnected"
|
||||
msgstr "remote[%s]: rozłączono"
|
||||
|
||||
@@ -15230,8 +15227,8 @@ msgid ""
|
||||
"(examples: \"*\", \"pbkdf2*\", \"*,!plain\")"
|
||||
msgstr ""
|
||||
"oddzielona przecinkami lista algorytmów hashujących używanych dla "
|
||||
"uwierzytelnienia hasłem w protokole weechat, dostępne wartości: "
|
||||
"\"plain\" (hasło w postaci jawnej, nie zahashowane), \"sha256\", \"sha512\", "
|
||||
"uwierzytelnienia hasłem w protokole weechat, dostępne wartości: \"plain\" "
|
||||
"(hasło w postaci jawnej, nie zahashowane), \"sha256\", \"sha512\", "
|
||||
"\"pbkdf2+sha256\", \"pbkdf2+sha512\", \"*\" oznacza wszystkie algorytmy, "
|
||||
"nazwa zaczynająca się od \"!\" oznacza wartość negatywną w celu uniknięcia "
|
||||
"użycia algorytmu, znak \"*\" może zostać użyty w nazwie (przykłady: \"*\", "
|
||||
@@ -15300,14 +15297,23 @@ msgstr ""
|
||||
"początku sprawi, że wielość znaków będzie miała znaczenie), przykład: "
|
||||
"\"^http://(www\\.)?przykład\\.(com|org)\""
|
||||
|
||||
#, fuzzy
|
||||
#| msgid ""
|
||||
#| "enable websocket extension \"permessage-deflate\" to compress websocket "
|
||||
#| "frames, with \"api\" and \"weechat\" protocols; if disabled, WeeChat (as "
|
||||
#| "server) will not enable permessage-deflate even if the client supports "
|
||||
#| "it, and when connecting to a remote WeeChat (api relay only), permessage-"
|
||||
#| "deflate support is not advertised by WeeChat; it is recommended to keep "
|
||||
#| "this option enabled, and you should disable it only if you have troubles "
|
||||
#| "with this extension, either with WeeChat or the client"
|
||||
msgid ""
|
||||
"enable websocket extension \"permessage-deflate\" to compress websocket "
|
||||
"frames, with \"api\" and \"weechat\" protocols; if disabled, WeeChat (as "
|
||||
"server) will not enable permessage-deflate even if the client supports it, "
|
||||
"and when connecting to a remote WeeChat (api relay only), permessage-deflate "
|
||||
"support is not advertised by WeeChat; it is recommended to keep this option "
|
||||
"enabled, and you should disable it only if you have troubles with this "
|
||||
"extension, either with WeeChat or the client"
|
||||
"frames (\"api\" protocol only); if disabled, WeeChat (as server) will not "
|
||||
"enable permessage-deflate even if the client supports it, and when "
|
||||
"connecting to a remote WeeChat (api relay only), permessage-deflate support "
|
||||
"is not advertised by WeeChat; it is recommended to keep this option enabled, "
|
||||
"and you should disable it only if you have troubles with this extension, "
|
||||
"either with WeeChat or the client"
|
||||
msgstr ""
|
||||
"włącz rozszerzenie „permessage-deflate” websocketów żeby kompresować ramki "
|
||||
"websocketów dla protokołów „api” i „weechat”; jeśli wyłączone WeeChat (jako "
|
||||
@@ -15422,8 +15428,8 @@ msgid ""
|
||||
"%s%s: error: file with TLS certificate/key is not readable: \"%s\" (option "
|
||||
"relay.network.tls_cert_key)"
|
||||
msgstr ""
|
||||
"%s%s: błąd: nie można odczytać pliku z certyfikatem/kluczem TLS: "
|
||||
"\"%s\" (opcja relay.network.tls_cert_key)"
|
||||
"%s%s: błąd: nie można odczytać pliku z certyfikatem/kluczem TLS: \"%s\" "
|
||||
"(opcja relay.network.tls_cert_key)"
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: unable to initialize priority for TLS"
|
||||
@@ -15573,11 +15579,11 @@ msgstr "%s%s: nie udało się wykonać komendy \"%s\" dla klienta %s%s%s"
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"%s%s: too few arguments received from client %s%s%s for command "
|
||||
"\"%s\" (received: %d arguments, expected: at least %d)"
|
||||
"%s%s: too few arguments received from client %s%s%s for command \"%s\" "
|
||||
"(received: %d arguments, expected: at least %d)"
|
||||
msgstr ""
|
||||
"%s%s: otrzymano za mało argumentów od klienta %s%s%s dla komendy "
|
||||
"\"%s\" (otrzymano: %d argumentów, spodziewano się: przynajmniej %d)"
|
||||
"%s%s: otrzymano za mało argumentów od klienta %s%s%s dla komendy \"%s\" "
|
||||
"(otrzymano: %d argumentów, spodziewano się: przynajmniej %d)"
|
||||
|
||||
msgid "Support of ruby scripts"
|
||||
msgstr "Wsparcie dla skryptów ruby"
|
||||
@@ -16678,23 +16684,22 @@ msgstr "zarządzaj triggerami, scyzorykiem WeeChat"
|
||||
#. TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated
|
||||
msgid ""
|
||||
"list [-o|-ol|-i|-il] || listfull || listdefault || add|addoff|addreplace "
|
||||
"<name> <hook> "
|
||||
"[\"<arguments>\" [\"<conditions>\" [\"<regex>\" [\"<command>\" [\"<return_code>\" [\"<post_action>\"]]]]]] "
|
||||
"|| addinput [<hook>] || input|output|recreate <name> || set <name> <option> "
|
||||
"<value> || rename|copy <name> <new_name> || enable|disable|toggle [<name>|"
|
||||
"<mask> [<name>|<mask>...]] || restart <name>|<mask> [<name>|<mask>...] || "
|
||||
"show <name> || del <name>|<mask> [<name>|<mask>...] || restore <name>|<mask> "
|
||||
"[<name>|<mask>...] || default -yes || monitor [<filter>]"
|
||||
"<name> <hook> [\"<arguments>\" [\"<conditions>\" [\"<regex>\" [\"<command>\" "
|
||||
"[\"<return_code>\" [\"<post_action>\"]]]]]] || addinput [<hook>] || input|"
|
||||
"output|recreate <name> || set <name> <option> <value> || rename|copy <name> "
|
||||
"<new_name> || enable|disable|toggle [<name>|<mask> [<name>|<mask>...]] || "
|
||||
"restart <name>|<mask> [<name>|<mask>...] || show <name> || del <name>|<mask> "
|
||||
"[<name>|<mask>...] || restore <name>|<mask> [<name>|<mask>...] || default -"
|
||||
"yes || monitor [<filter>]"
|
||||
msgstr ""
|
||||
"list [-o|-ol|-i|-il] || listfull || listdefault || add|addoff|addreplace "
|
||||
"<nazwa> <hook> "
|
||||
"[\"<argumenty>\" [\"<warunki>\" [\"<regex>\" [\"<komenda>\" [\"<zwracany_kod>\" [\"<post_action>\"]]]]]] "
|
||||
"|| addinput [<hook>] || input|output|recreate <nazwa> || set <nazwa> <opcja> "
|
||||
"<wartość> || rename|copy <nazwa> <nowa_nazwa> || enable|disable|toggle "
|
||||
"[<nazwa>|<maska> [<nazwa>|<maska>...]] || restart <nazwa>|<maska> [<nazwa>|"
|
||||
"<maska>...] || show <nazwa> || del <nazwa>|<maska> [<nazwa>|<maska>...] || "
|
||||
"restore <nazwa>|<maska> [<nazwa>|<maska>...] || default -yes || monitor "
|
||||
"[<filtr>]"
|
||||
"<nazwa> <hook> [\"<argumenty>\" [\"<warunki>\" [\"<regex>\" [\"<komenda>\" "
|
||||
"[\"<zwracany_kod>\" [\"<post_action>\"]]]]]] || addinput [<hook>] || input|"
|
||||
"output|recreate <nazwa> || set <nazwa> <opcja> <wartość> || rename|copy "
|
||||
"<nazwa> <nowa_nazwa> || enable|disable|toggle [<nazwa>|<maska> [<nazwa>|"
|
||||
"<maska>...]] || restart <nazwa>|<maska> [<nazwa>|<maska>...] || show <nazwa> "
|
||||
"|| del <nazwa>|<maska> [<nazwa>|<maska>...] || restore <nazwa>|<maska> "
|
||||
"[<nazwa>|<maska>...] || default -yes || monitor [<filtr>]"
|
||||
|
||||
msgid "raw[list]: list triggers (without argument, this list is displayed)"
|
||||
msgstr ""
|
||||
@@ -17070,15 +17075,14 @@ msgstr ""
|
||||
"zastępuje tekst za pomocą rozszerzonego wyrażenia regularnego POSIX "
|
||||
"(następuje to tylko wtedy, jeśli warunki są spełnione i przed wykonaniem "
|
||||
"komendy) (uwaga: zawartość jest przetwarzana, kiedy trigger jest "
|
||||
"uruchamiany, zobacz /help eval); format to: \"/regex/zastąp/"
|
||||
"zmienna\" (zmienna to zmienna w tablicy hashy do zamiany, jest to "
|
||||
"opcjonalne), wiele wyrażeń można oddzielić spacja, na przykład: \"/regex1/"
|
||||
"replace1/var1 /regex2/replace2/var2\"; wyescapowane znaki są interpretowane "
|
||||
"w wyrażeniu (na przykład \"\\n\"); separator \"/\" może być zastąpiony "
|
||||
"dowolnym znakiem (jednym lub więcej identycznych znaków); pasujące grupy "
|
||||
"mogą być użyte w zastępowaniu: ${re:0} do ${re:99}, ${re:+} dla ostatniego "
|
||||
"dopasowania i ${hide:c,${re:N}} do zastąpienia wszystkich znaków w grupie N "
|
||||
"znakiem 'c'"
|
||||
"uruchamiany, zobacz /help eval); format to: \"/regex/zastąp/zmienna\" "
|
||||
"(zmienna to zmienna w tablicy hashy do zamiany, jest to opcjonalne), wiele "
|
||||
"wyrażeń można oddzielić spacja, na przykład: \"/regex1/replace1/var1 /regex2/"
|
||||
"replace2/var2\"; wyescapowane znaki są interpretowane w wyrażeniu (na "
|
||||
"przykład \"\\n\"); separator \"/\" może być zastąpiony dowolnym znakiem "
|
||||
"(jednym lub więcej identycznych znaków); pasujące grupy mogą być użyte w "
|
||||
"zastępowaniu: ${re:0} do ${re:99}, ${re:+} dla ostatniego dopasowania i "
|
||||
"${hide:c,${re:N}} do zastąpienia wszystkich znaków w grupie N znakiem 'c'"
|
||||
|
||||
msgid ""
|
||||
"command(s) to run if conditions are OK, after regex replacements (many "
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-06-01 13:02+0200\n"
|
||||
"POT-Creation-Date: 2024-06-02 09:01+0200\n"
|
||||
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
|
||||
"Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
|
||||
"Language-Team: Portuguese <>\n"
|
||||
@@ -15317,12 +15317,12 @@ msgstr ""
|
||||
|
||||
msgid ""
|
||||
"enable websocket extension \"permessage-deflate\" to compress websocket "
|
||||
"frames, with \"api\" and \"weechat\" protocols; if disabled, WeeChat (as "
|
||||
"server) will not enable permessage-deflate even if the client supports it, "
|
||||
"and when connecting to a remote WeeChat (api relay only), permessage-deflate "
|
||||
"support is not advertised by WeeChat; it is recommended to keep this option "
|
||||
"enabled, and you should disable it only if you have troubles with this "
|
||||
"extension, either with WeeChat or the client"
|
||||
"frames (\"api\" protocol only); if disabled, WeeChat (as server) will not "
|
||||
"enable permessage-deflate even if the client supports it, and when "
|
||||
"connecting to a remote WeeChat (api relay only), permessage-deflate support "
|
||||
"is not advertised by WeeChat; it is recommended to keep this option enabled, "
|
||||
"and you should disable it only if you have troubles with this extension, "
|
||||
"either with WeeChat or the client"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
|
||||
+7
-7
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-06-01 13:02+0200\n"
|
||||
"POT-Creation-Date: 2024-06-02 09:01+0200\n"
|
||||
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
|
||||
"Last-Translator: Érico Nogueira <ericonr@disroot.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -14437,12 +14437,12 @@ msgstr ""
|
||||
|
||||
msgid ""
|
||||
"enable websocket extension \"permessage-deflate\" to compress websocket "
|
||||
"frames, with \"api\" and \"weechat\" protocols; if disabled, WeeChat (as "
|
||||
"server) will not enable permessage-deflate even if the client supports it, "
|
||||
"and when connecting to a remote WeeChat (api relay only), permessage-deflate "
|
||||
"support is not advertised by WeeChat; it is recommended to keep this option "
|
||||
"enabled, and you should disable it only if you have troubles with this "
|
||||
"extension, either with WeeChat or the client"
|
||||
"frames (\"api\" protocol only); if disabled, WeeChat (as server) will not "
|
||||
"enable permessage-deflate even if the client supports it, and when "
|
||||
"connecting to a remote WeeChat (api relay only), permessage-deflate support "
|
||||
"is not advertised by WeeChat; it is recommended to keep this option enabled, "
|
||||
"and you should disable it only if you have troubles with this extension, "
|
||||
"either with WeeChat or the client"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
|
||||
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-06-01 13:02+0200\n"
|
||||
"POT-Creation-Date: 2024-06-02 09:01+0200\n"
|
||||
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
|
||||
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -14026,12 +14026,12 @@ msgstr ""
|
||||
|
||||
msgid ""
|
||||
"enable websocket extension \"permessage-deflate\" to compress websocket "
|
||||
"frames, with \"api\" and \"weechat\" protocols; if disabled, WeeChat (as "
|
||||
"server) will not enable permessage-deflate even if the client supports it, "
|
||||
"and when connecting to a remote WeeChat (api relay only), permessage-deflate "
|
||||
"support is not advertised by WeeChat; it is recommended to keep this option "
|
||||
"enabled, and you should disable it only if you have troubles with this "
|
||||
"extension, either with WeeChat or the client"
|
||||
"frames (\"api\" protocol only); if disabled, WeeChat (as server) will not "
|
||||
"enable permessage-deflate even if the client supports it, and when "
|
||||
"connecting to a remote WeeChat (api relay only), permessage-deflate support "
|
||||
"is not advertised by WeeChat; it is recommended to keep this option enabled, "
|
||||
"and you should disable it only if you have troubles with this extension, "
|
||||
"either with WeeChat or the client"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-06-01 13:02+0200\n"
|
||||
"POT-Creation-Date: 2024-06-02 09:01+0200\n"
|
||||
"PO-Revision-Date: 2024-05-07 14:00+0400\n"
|
||||
"Last-Translator: Ivan Pešić <ivan.pesic@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -15322,12 +15322,12 @@ msgstr ""
|
||||
|
||||
msgid ""
|
||||
"enable websocket extension \"permessage-deflate\" to compress websocket "
|
||||
"frames, with \"api\" and \"weechat\" protocols; if disabled, WeeChat (as "
|
||||
"server) will not enable permessage-deflate even if the client supports it, "
|
||||
"and when connecting to a remote WeeChat (api relay only), permessage-deflate "
|
||||
"support is not advertised by WeeChat; it is recommended to keep this option "
|
||||
"enabled, and you should disable it only if you have troubles with this "
|
||||
"extension, either with WeeChat or the client"
|
||||
"frames (\"api\" protocol only); if disabled, WeeChat (as server) will not "
|
||||
"enable permessage-deflate even if the client supports it, and when "
|
||||
"connecting to a remote WeeChat (api relay only), permessage-deflate support "
|
||||
"is not advertised by WeeChat; it is recommended to keep this option enabled, "
|
||||
"and you should disable it only if you have troubles with this extension, "
|
||||
"either with WeeChat or the client"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-06-01 13:02+0200\n"
|
||||
"POT-Creation-Date: 2024-06-02 09:01+0200\n"
|
||||
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
|
||||
"Last-Translator: Emir SARI <emir_sari@icloud.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -15637,12 +15637,12 @@ msgstr ""
|
||||
|
||||
msgid ""
|
||||
"enable websocket extension \"permessage-deflate\" to compress websocket "
|
||||
"frames, with \"api\" and \"weechat\" protocols; if disabled, WeeChat (as "
|
||||
"server) will not enable permessage-deflate even if the client supports it, "
|
||||
"and when connecting to a remote WeeChat (api relay only), permessage-deflate "
|
||||
"support is not advertised by WeeChat; it is recommended to keep this option "
|
||||
"enabled, and you should disable it only if you have troubles with this "
|
||||
"extension, either with WeeChat or the client"
|
||||
"frames (\"api\" protocol only); if disabled, WeeChat (as server) will not "
|
||||
"enable permessage-deflate even if the client supports it, and when "
|
||||
"connecting to a remote WeeChat (api relay only), permessage-deflate support "
|
||||
"is not advertised by WeeChat; it is recommended to keep this option enabled, "
|
||||
"and you should disable it only if you have troubles with this extension, "
|
||||
"either with WeeChat or the client"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
|
||||
+7
-7
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-06-01 13:02+0200\n"
|
||||
"POT-Creation-Date: 2024-06-02 09:01+0200\n"
|
||||
"PO-Revision-Date: 2014-08-16 10:27+0200\n"
|
||||
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -12786,12 +12786,12 @@ msgstr ""
|
||||
|
||||
msgid ""
|
||||
"enable websocket extension \"permessage-deflate\" to compress websocket "
|
||||
"frames, with \"api\" and \"weechat\" protocols; if disabled, WeeChat (as "
|
||||
"server) will not enable permessage-deflate even if the client supports it, "
|
||||
"and when connecting to a remote WeeChat (api relay only), permessage-deflate "
|
||||
"support is not advertised by WeeChat; it is recommended to keep this option "
|
||||
"enabled, and you should disable it only if you have troubles with this "
|
||||
"extension, either with WeeChat or the client"
|
||||
"frames (\"api\" protocol only); if disabled, WeeChat (as server) will not "
|
||||
"enable permessage-deflate even if the client supports it, and when "
|
||||
"connecting to a remote WeeChat (api relay only), permessage-deflate support "
|
||||
"is not advertised by WeeChat; it is recommended to keep this option enabled, "
|
||||
"and you should disable it only if you have troubles with this extension, "
|
||||
"either with WeeChat or the client"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
|
||||
@@ -207,7 +207,8 @@ relay_remote_network_check_auth (struct t_relay_remote *remote,
|
||||
|
||||
relay_websocket_parse_extensions (
|
||||
weechat_hashtable_get (http_resp->headers, "sec-websocket-extensions"),
|
||||
remote->ws_deflate);
|
||||
remote->ws_deflate,
|
||||
1); /* ws_deflate_allowed */
|
||||
|
||||
if (!accept_ok)
|
||||
{
|
||||
|
||||
@@ -1759,7 +1759,7 @@ relay_config_init ()
|
||||
relay_config_file, relay_config_section_network,
|
||||
"websocket_permessage_deflate", "boolean",
|
||||
N_("enable websocket extension \"permessage-deflate\" to compress "
|
||||
"websocket frames, with \"api\" and \"weechat\" protocols; "
|
||||
"websocket frames (\"api\" protocol only); "
|
||||
"if disabled, WeeChat (as server) will not enable "
|
||||
"permessage-deflate even if the client supports it, and when "
|
||||
"connecting to a remote WeeChat (api relay only), "
|
||||
|
||||
@@ -385,6 +385,10 @@ error:
|
||||
/*
|
||||
* Parses and saves a HTTP header in hashtable "headers".
|
||||
*
|
||||
* The parameter "ws_deflate_allowed" controls whether the websocket extension
|
||||
* "permessage-deflate" is allowed or not (it is allowed only with "api"
|
||||
* protocol).
|
||||
*
|
||||
* Returns:
|
||||
* 1: OK, header saved
|
||||
* 0: error: invalid format
|
||||
@@ -392,7 +396,8 @@ error:
|
||||
|
||||
int
|
||||
relay_http_parse_header (struct t_relay_http_request *request,
|
||||
const char *header)
|
||||
const char *header,
|
||||
int ws_deflate_allowed)
|
||||
{
|
||||
char *pos, *name, *name_lower, *error, **items;
|
||||
const char *ptr_value;
|
||||
@@ -465,7 +470,12 @@ relay_http_parse_header (struct t_relay_http_request *request,
|
||||
* extensions
|
||||
*/
|
||||
if (strcmp (name_lower, "sec-websocket-extensions") == 0)
|
||||
relay_websocket_parse_extensions (ptr_value, request->ws_deflate);
|
||||
{
|
||||
relay_websocket_parse_extensions (
|
||||
ptr_value,
|
||||
request->ws_deflate,
|
||||
ws_deflate_allowed);
|
||||
}
|
||||
|
||||
free (name);
|
||||
free (name_lower);
|
||||
@@ -891,7 +901,7 @@ void
|
||||
relay_http_recv (struct t_relay_client *client, const char *data)
|
||||
{
|
||||
char *new_partial, *pos;
|
||||
int length;
|
||||
int length, ws_deflate_allowed;
|
||||
|
||||
if (client->partial_message)
|
||||
{
|
||||
@@ -924,8 +934,11 @@ relay_http_recv (struct t_relay_client *client, const char *data)
|
||||
}
|
||||
else
|
||||
{
|
||||
ws_deflate_allowed = (client->protocol == RELAY_PROTOCOL_API) ?
|
||||
1 : 0;
|
||||
relay_http_parse_header (client->http_req,
|
||||
client->partial_message);
|
||||
client->partial_message,
|
||||
ws_deflate_allowed);
|
||||
}
|
||||
pos[0] = '\r';
|
||||
pos++;
|
||||
|
||||
@@ -301,7 +301,8 @@ relay_websocket_client_handshake_valid (struct t_relay_http_request *request)
|
||||
|
||||
void
|
||||
relay_websocket_parse_extensions (const char *extensions,
|
||||
struct t_relay_websocket_deflate *ws_deflate)
|
||||
struct t_relay_websocket_deflate *ws_deflate,
|
||||
int ws_deflate_allowed)
|
||||
{
|
||||
char **exts, **params, **items, *error;
|
||||
int i, j, num_exts, num_params, num_items;
|
||||
@@ -319,6 +320,7 @@ relay_websocket_parse_extensions (const char *extensions,
|
||||
params = weechat_string_split (exts[i], ";", " ", 0, 0, &num_params);
|
||||
if (params && (num_params >= 1)
|
||||
&& (strcmp (params[0], "permessage-deflate") == 0)
|
||||
&& ws_deflate_allowed
|
||||
&& (weechat_config_boolean (relay_config_network_websocket_permessage_deflate)))
|
||||
{
|
||||
ws_deflate->enabled = 1;
|
||||
|
||||
@@ -71,7 +71,8 @@ extern int relay_websocket_is_valid_http_get (enum t_relay_protocol protocol,
|
||||
const char *message);
|
||||
extern int relay_websocket_client_handshake_valid (struct t_relay_http_request *request);
|
||||
extern void relay_websocket_parse_extensions (const char *extensions,
|
||||
struct t_relay_websocket_deflate *ws_deflate);
|
||||
struct t_relay_websocket_deflate *ws_deflate,
|
||||
int ws_deflate_allowed);
|
||||
extern char *relay_websocket_build_handshake (struct t_relay_http_request *request);
|
||||
extern int relay_websocket_decode_frame (const unsigned char *buffer,
|
||||
unsigned long long length,
|
||||
|
||||
@@ -167,7 +167,7 @@ TEST(RelayWebsocket, ClientHandshakeValid)
|
||||
LONGS_EQUAL(0, relay_websocket_client_handshake_valid (request));
|
||||
|
||||
relay_websocket_deflate_reinit (request->ws_deflate);
|
||||
relay_websocket_parse_extensions ("permessage-deflate", request->ws_deflate);
|
||||
relay_websocket_parse_extensions ("permessage-deflate", request->ws_deflate, 1);
|
||||
LONGS_EQUAL(1, request->ws_deflate->enabled);
|
||||
LONGS_EQUAL(1, request->ws_deflate->server_context_takeover);
|
||||
LONGS_EQUAL(1, request->ws_deflate->client_context_takeover);
|
||||
@@ -187,7 +187,8 @@ TEST(RelayWebsocket, ClientHandshakeValid)
|
||||
relay_websocket_deflate_reinit (request->ws_deflate);
|
||||
relay_websocket_parse_extensions (
|
||||
"permessage-deflate; client_max_window_bits",
|
||||
request->ws_deflate);
|
||||
request->ws_deflate,
|
||||
1);
|
||||
LONGS_EQUAL(1, request->ws_deflate->enabled);
|
||||
LONGS_EQUAL(1, request->ws_deflate->server_context_takeover);
|
||||
LONGS_EQUAL(1, request->ws_deflate->client_context_takeover);
|
||||
@@ -207,7 +208,8 @@ TEST(RelayWebsocket, ClientHandshakeValid)
|
||||
relay_websocket_deflate_reinit (request->ws_deflate);
|
||||
relay_websocket_parse_extensions (
|
||||
"permessage-deflate; client_max_window_bits = 12; server_no_context_takeover",
|
||||
request->ws_deflate);
|
||||
request->ws_deflate,
|
||||
1);
|
||||
LONGS_EQUAL(1, request->ws_deflate->enabled);
|
||||
LONGS_EQUAL(0, request->ws_deflate->server_context_takeover);
|
||||
LONGS_EQUAL(1, request->ws_deflate->client_context_takeover);
|
||||
@@ -227,7 +229,8 @@ TEST(RelayWebsocket, ClientHandshakeValid)
|
||||
relay_websocket_deflate_reinit (request->ws_deflate);
|
||||
relay_websocket_parse_extensions (
|
||||
"permessage-deflate; client_max_window_bits = 12; server_max_window_bits=8; client_no_context_takeover; server_no_context_takeover",
|
||||
request->ws_deflate);
|
||||
request->ws_deflate,
|
||||
1);
|
||||
LONGS_EQUAL(1, request->ws_deflate->enabled);
|
||||
LONGS_EQUAL(0, request->ws_deflate->server_context_takeover);
|
||||
LONGS_EQUAL(0, request->ws_deflate->client_context_takeover);
|
||||
@@ -256,16 +259,26 @@ TEST(RelayWebsocket, ParseExtensions)
|
||||
{
|
||||
struct t_relay_websocket_deflate ws_deflate;
|
||||
|
||||
relay_websocket_parse_extensions (NULL, NULL);
|
||||
relay_websocket_parse_extensions ("test", NULL);
|
||||
relay_websocket_parse_extensions (NULL, &ws_deflate);
|
||||
relay_websocket_parse_extensions (NULL, NULL, 1);
|
||||
relay_websocket_parse_extensions ("test", NULL, 1);
|
||||
relay_websocket_parse_extensions (NULL, &ws_deflate, 1);
|
||||
|
||||
memset (&ws_deflate, 0, sizeof (ws_deflate));
|
||||
relay_websocket_parse_extensions ("test", &ws_deflate);
|
||||
relay_websocket_parse_extensions ("test", &ws_deflate, 1);
|
||||
LONGS_EQUAL(0, ws_deflate.enabled);
|
||||
|
||||
memset (&ws_deflate, 0, sizeof (ws_deflate));
|
||||
relay_websocket_parse_extensions ("permessage-deflate", &ws_deflate);
|
||||
relay_websocket_parse_extensions ("permessage-deflate", &ws_deflate, 0);
|
||||
LONGS_EQUAL(0, ws_deflate.enabled);
|
||||
LONGS_EQUAL(0, ws_deflate.server_context_takeover);
|
||||
LONGS_EQUAL(0, ws_deflate.client_context_takeover);
|
||||
LONGS_EQUAL(0, ws_deflate.window_bits_deflate);
|
||||
LONGS_EQUAL(0, ws_deflate.window_bits_inflate);
|
||||
POINTERS_EQUAL(NULL, ws_deflate.strm_deflate);
|
||||
POINTERS_EQUAL(NULL, ws_deflate.strm_inflate);
|
||||
|
||||
memset (&ws_deflate, 0, sizeof (ws_deflate));
|
||||
relay_websocket_parse_extensions ("permessage-deflate", &ws_deflate, 1);
|
||||
LONGS_EQUAL(1, ws_deflate.enabled);
|
||||
LONGS_EQUAL(1, ws_deflate.server_context_takeover);
|
||||
LONGS_EQUAL(1, ws_deflate.client_context_takeover);
|
||||
@@ -276,7 +289,8 @@ TEST(RelayWebsocket, ParseExtensions)
|
||||
|
||||
memset (&ws_deflate, 0, sizeof (ws_deflate));
|
||||
relay_websocket_parse_extensions ("permessage-deflate; client_max_window_bits",
|
||||
&ws_deflate);
|
||||
&ws_deflate,
|
||||
1);
|
||||
LONGS_EQUAL(1, ws_deflate.enabled);
|
||||
LONGS_EQUAL(1, ws_deflate.server_context_takeover);
|
||||
LONGS_EQUAL(1, ws_deflate.client_context_takeover);
|
||||
@@ -289,7 +303,8 @@ TEST(RelayWebsocket, ParseExtensions)
|
||||
memset (&ws_deflate, 0, sizeof (ws_deflate));
|
||||
relay_websocket_parse_extensions (
|
||||
"permessage-deflate; client_max_window_bits=4",
|
||||
&ws_deflate);
|
||||
&ws_deflate,
|
||||
1);
|
||||
LONGS_EQUAL(1, ws_deflate.enabled);
|
||||
LONGS_EQUAL(1, ws_deflate.server_context_takeover);
|
||||
LONGS_EQUAL(1, ws_deflate.client_context_takeover);
|
||||
@@ -302,7 +317,8 @@ TEST(RelayWebsocket, ParseExtensions)
|
||||
memset (&ws_deflate, 0, sizeof (ws_deflate));
|
||||
relay_websocket_parse_extensions (
|
||||
"permessage-deflate; client_max_window_bits=30",
|
||||
&ws_deflate);
|
||||
&ws_deflate,
|
||||
1);
|
||||
LONGS_EQUAL(1, ws_deflate.enabled);
|
||||
LONGS_EQUAL(1, ws_deflate.server_context_takeover);
|
||||
LONGS_EQUAL(1, ws_deflate.client_context_takeover);
|
||||
@@ -315,7 +331,8 @@ TEST(RelayWebsocket, ParseExtensions)
|
||||
memset (&ws_deflate, 0, sizeof (ws_deflate));
|
||||
relay_websocket_parse_extensions (
|
||||
"permessage-deflate; client_max_window_bits=test",
|
||||
&ws_deflate);
|
||||
&ws_deflate,
|
||||
1);
|
||||
LONGS_EQUAL(1, ws_deflate.enabled);
|
||||
LONGS_EQUAL(1, ws_deflate.server_context_takeover);
|
||||
LONGS_EQUAL(1, ws_deflate.client_context_takeover);
|
||||
@@ -327,7 +344,8 @@ TEST(RelayWebsocket, ParseExtensions)
|
||||
memset (&ws_deflate, 0, sizeof (ws_deflate));
|
||||
relay_websocket_parse_extensions (
|
||||
"permessage-deflate; client_max_window_bits=9",
|
||||
&ws_deflate);
|
||||
&ws_deflate,
|
||||
1);
|
||||
LONGS_EQUAL(1, ws_deflate.enabled);
|
||||
LONGS_EQUAL(1, ws_deflate.server_context_takeover);
|
||||
LONGS_EQUAL(1, ws_deflate.client_context_takeover);
|
||||
@@ -339,7 +357,8 @@ TEST(RelayWebsocket, ParseExtensions)
|
||||
memset (&ws_deflate, 0, sizeof (ws_deflate));
|
||||
relay_websocket_parse_extensions (
|
||||
"permessage-deflate; client_max_window_bits=9; server_max_window_bits=10",
|
||||
&ws_deflate);
|
||||
&ws_deflate,
|
||||
1);
|
||||
LONGS_EQUAL(1, ws_deflate.enabled);
|
||||
LONGS_EQUAL(1, ws_deflate.server_context_takeover);
|
||||
LONGS_EQUAL(1, ws_deflate.client_context_takeover);
|
||||
@@ -352,7 +371,8 @@ TEST(RelayWebsocket, ParseExtensions)
|
||||
relay_websocket_parse_extensions (
|
||||
"permessage-deflate; client_max_window_bits=9; server_max_window_bits=10; "
|
||||
"server_no_context_takeover",
|
||||
&ws_deflate);
|
||||
&ws_deflate,
|
||||
1);
|
||||
LONGS_EQUAL(1, ws_deflate.enabled);
|
||||
LONGS_EQUAL(0, ws_deflate.server_context_takeover);
|
||||
LONGS_EQUAL(1, ws_deflate.client_context_takeover);
|
||||
@@ -365,7 +385,8 @@ TEST(RelayWebsocket, ParseExtensions)
|
||||
relay_websocket_parse_extensions (
|
||||
"permessage-deflate; client_max_window_bits=9; server_max_window_bits=10; "
|
||||
"server_no_context_takeover; client_no_context_takeover",
|
||||
&ws_deflate);
|
||||
&ws_deflate,
|
||||
1);
|
||||
LONGS_EQUAL(1, ws_deflate.enabled);
|
||||
LONGS_EQUAL(0, ws_deflate.server_context_takeover);
|
||||
LONGS_EQUAL(0, ws_deflate.client_context_takeover);
|
||||
|
||||
Reference in New Issue
Block a user