From 7d1ad59ddea7d621840df182758c54f1e02f9daf Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Tue, 8 Jan 2013 08:14:07 +0100 Subject: [PATCH] relay: add message when address family is not supported by protocol (on socket creation) --- po/cs.po | 6 +++++- po/de.po | 6 +++++- po/es.po | 6 +++++- po/fr.po | 8 ++++++-- po/hu.po | 6 +++++- po/it.po | 6 +++++- po/ja.po | 6 +++++- po/pl.po | 6 +++++- po/pt_BR.po | 6 +++++- po/ru.po | 6 +++++- po/weechat.pot | 6 +++++- src/plugins/relay/relay-server.c | 6 ++++++ 12 files changed, 62 insertions(+), 12 deletions(-) diff --git a/po/cs.po b/po/cs.po index 65393820a..51440913d 100644 --- a/po/cs.po +++ b/po/cs.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.0-rc1\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-01-07 21:32+0100\n" +"POT-Creation-Date: 2013-01-08 08:06+0100\n" "PO-Revision-Date: 2013-01-01 12:57+0100\n" "Last-Translator: Jiri Golembiovsky \n" "Language-Team: weechat-dev \n" @@ -7988,6 +7988,10 @@ msgstr "%s%s: nemohu nastavit nastavení sketu \"SO_REUSEADDR\"" msgid "%s%s: cannot create socket: error %d %s" msgstr "%s%s: nemohu vytvořit soket pro xfer" +#, c-format +msgid "%s%s: try /set relay.network.ipv6 off" +msgstr "" + #, fuzzy, c-format msgid "%s%s: cannot set socket option \"IPV6_V6ONLY\" to value %d" msgstr "%s%s: nemohu nastavit nastavení soketu \"SO_KEEPALIVE\"" diff --git a/po/de.po b/po/de.po index e94404424..e31299c32 100644 --- a/po/de.po +++ b/po/de.po @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.0-rc1\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-01-07 21:32+0100\n" +"POT-Creation-Date: 2013-01-08 08:06+0100\n" "PO-Revision-Date: 2012-12-25 11:59+0100\n" "Last-Translator: Nils Görs \n" "Language-Team: German \n" @@ -8714,6 +8714,10 @@ msgstr "%s%s Fehler beim Erstellen der Socket-Option \"SO_REUSEADDR\"" msgid "%s%s: cannot create socket: error %d %s" msgstr "%s%s: Für den Transfer konnte kein Socket angelegt werden" +#, c-format +msgid "%s%s: try /set relay.network.ipv6 off" +msgstr "" + #, c-format msgid "%s%s: cannot set socket option \"IPV6_V6ONLY\" to value %d" msgstr "" diff --git a/po/es.po b/po/es.po index 60eb12b09..449886148 100644 --- a/po/es.po +++ b/po/es.po @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.0-rc1\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-01-07 21:32+0100\n" +"POT-Creation-Date: 2013-01-08 08:06+0100\n" "PO-Revision-Date: 2013-01-01 12:57+0100\n" "Last-Translator: Elián Hanisch \n" "Language-Team: weechat-dev \n" @@ -8261,6 +8261,10 @@ msgstr "" msgid "%s%s: cannot create socket: error %d %s" msgstr "%s%s: no ha sido posible crear el socket para la transferencia" +#, c-format +msgid "%s%s: try /set relay.network.ipv6 off" +msgstr "" + #, fuzzy, c-format msgid "%s%s: cannot set socket option \"IPV6_V6ONLY\" to value %d" msgstr "" diff --git a/po/fr.po b/po/fr.po index 12757900b..4d640f4c4 100644 --- a/po/fr.po +++ b/po/fr.po @@ -21,8 +21,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.0-rc1\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-01-07 21:32+0100\n" -"PO-Revision-Date: 2013-01-07 21:32+0100\n" +"POT-Creation-Date: 2013-01-08 08:06+0100\n" +"PO-Revision-Date: 2013-01-08 08:07+0100\n" "Last-Translator: Sebastien Helleu \n" "Language-Team: weechat-dev \n" "Language: French\n" @@ -8478,6 +8478,10 @@ msgstr "%s%s: impossible d'activer l'option socket \"SO_REUSEADDR\"" msgid "%s%s: cannot create socket: error %d %s" msgstr "%s%s: impossible de créer la socket: erreur %d %s" +#, c-format +msgid "%s%s: try /set relay.network.ipv6 off" +msgstr "%s%s: essayez /set relay.network.ipv6 off" + #, c-format msgid "%s%s: cannot set socket option \"IPV6_V6ONLY\" to value %d" msgstr "" diff --git a/po/hu.po b/po/hu.po index b8fe1942e..bf0d04b1c 100644 --- a/po/hu.po +++ b/po/hu.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.0-rc1\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-01-07 21:32+0100\n" +"POT-Creation-Date: 2013-01-08 08:06+0100\n" "PO-Revision-Date: 2013-01-01 12:58+0100\n" "Last-Translator: Andras Voroskoi \n" "Language-Team: weechat-dev \n" @@ -7473,6 +7473,10 @@ msgstr "%s nem sikerült a \"SO_REUSEADDR\" csatornaopciót beállítani\n" msgid "%s%s: cannot create socket: error %d %s" msgstr "%s nem sikerült a csatornát létrehozni\n" +#, c-format +msgid "%s%s: try /set relay.network.ipv6 off" +msgstr "" + #, fuzzy, c-format msgid "%s%s: cannot set socket option \"IPV6_V6ONLY\" to value %d" msgstr "%s nem sikerült a \"SO_KEEPALIVE\" csatornaopciót beállítani\n" diff --git a/po/it.po b/po/it.po index 18d331bd2..8417b5e63 100644 --- a/po/it.po +++ b/po/it.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.0-rc1\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-01-07 21:32+0100\n" +"POT-Creation-Date: 2013-01-08 08:06+0100\n" "PO-Revision-Date: 2013-01-01 12:58+0100\n" "Last-Translator: Marco Paolone \n" "Language-Team: weechat-dev \n" @@ -8254,6 +8254,10 @@ msgstr "%s%s: impossibile impostare l'opzione del socket \"SO_REUSEADDR\"" msgid "%s%s: cannot create socket: error %d %s" msgstr "%s%s: impossibile creare il socker per xfer" +#, c-format +msgid "%s%s: try /set relay.network.ipv6 off" +msgstr "" + #, fuzzy, c-format msgid "%s%s: cannot set socket option \"IPV6_V6ONLY\" to value %d" msgstr "%s%s: impossibile impostare l'opzione del socket \"SO_KEEPALIVE\"" diff --git a/po/ja.po b/po/ja.po index 74cab97b2..6823ee9f3 100644 --- a/po/ja.po +++ b/po/ja.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.0-rc1\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-01-07 21:32+0100\n" +"POT-Creation-Date: 2013-01-08 08:06+0100\n" "PO-Revision-Date: 2013-01-02 03:32+0900\n" "Last-Translator: AYANOKOUZI, Ryuunosuke \n" "Language-Team: Japanese \n" @@ -8185,6 +8185,10 @@ msgstr "%s%s: ソケットオプション \"SO_REUSEADDR\" の設定に失敗" msgid "%s%s: cannot create socket: error %d %s" msgstr "%s%s: xfer 用のソケットの作成に失敗" +#, c-format +msgid "%s%s: try /set relay.network.ipv6 off" +msgstr "" + #, c-format msgid "%s%s: cannot set socket option \"IPV6_V6ONLY\" to value %d" msgstr "" diff --git a/po/pl.po b/po/pl.po index 97279d171..d28213d4a 100644 --- a/po/pl.po +++ b/po/pl.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.0-rc1\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-01-07 21:32+0100\n" +"POT-Creation-Date: 2013-01-08 08:06+0100\n" "PO-Revision-Date: 2013-01-01 12:58+0100\n" "Last-Translator: Krzysztof Korościk \n" "Language-Team: weechat-dev \n" @@ -8191,6 +8191,10 @@ msgstr "%s%s: nie można ustawić opcji gniazda \"SO_REUSEADDR\"" msgid "%s%s: cannot create socket: error %d %s" msgstr "%s%s: nie można utworzyć gniazda dla xfer" +#, c-format +msgid "%s%s: try /set relay.network.ipv6 off" +msgstr "" + #, fuzzy, c-format msgid "%s%s: cannot set socket option \"IPV6_V6ONLY\" to value %d" msgstr "%s%s: nie można ustawić opcji gniazda \"SO_KEEPALIVE\"" diff --git a/po/pt_BR.po b/po/pt_BR.po index 55bc5c2fa..1a3eaaab9 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.0-rc1\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-01-07 21:32+0100\n" +"POT-Creation-Date: 2013-01-08 08:06+0100\n" "PO-Revision-Date: 2013-01-01 12:58+0100\n" "Last-Translator: Sergio Durigan Junior \n" "Language-Team: weechat-dev \n" @@ -7629,6 +7629,10 @@ msgstr "%s%s: não foi possível setar opção \"SO_REUSEADDR\" para o socket" msgid "%s%s: cannot create socket: error %d %s" msgstr "%s%s: não foi possível criar socket para transferência" +#, c-format +msgid "%s%s: try /set relay.network.ipv6 off" +msgstr "" + #, fuzzy, c-format msgid "%s%s: cannot set socket option \"IPV6_V6ONLY\" to value %d" msgstr "%s%s: não foi possível setar opção \"SO_KEEPALIVE\" para o socket" diff --git a/po/ru.po b/po/ru.po index 13764a7b7..6fbbb85cb 100644 --- a/po/ru.po +++ b/po/ru.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.0-rc1\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-01-07 21:32+0100\n" +"POT-Creation-Date: 2013-01-08 08:06+0100\n" "PO-Revision-Date: 2013-01-01 12:58+0100\n" "Last-Translator: Aleksey V Zapparov AKA ixti \n" "Language-Team: weechat-dev \n" @@ -7497,6 +7497,10 @@ msgstr "%s не могу установить настройку сокета \" msgid "%s%s: cannot create socket: error %d %s" msgstr "%s невозможно создать сокет\n" +#, c-format +msgid "%s%s: try /set relay.network.ipv6 off" +msgstr "" + #, fuzzy, c-format msgid "%s%s: cannot set socket option \"IPV6_V6ONLY\" to value %d" msgstr "%s не могу установить настройку сокета \"SO_KEEPALIVE\"\n" diff --git a/po/weechat.pot b/po/weechat.pot index 97fa01f5f..1b0395910 100644 --- a/po/weechat.pot +++ b/po/weechat.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-01-07 21:32+0100\n" +"POT-Creation-Date: 2013-01-08 08:06+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -6587,6 +6587,10 @@ msgstr "" msgid "%s%s: cannot create socket: error %d %s" msgstr "" +#, c-format +msgid "%s%s: try /set relay.network.ipv6 off" +msgstr "" + #, c-format msgid "%s%s: cannot set socket option \"IPV6_V6ONLY\" to value %d" msgstr "" diff --git a/src/plugins/relay/relay-server.c b/src/plugins/relay/relay-server.c index 28fc659fa..4f4f61b06 100644 --- a/src/plugins/relay/relay-server.c +++ b/src/plugins/relay/relay-server.c @@ -382,6 +382,12 @@ relay_server_create_socket (struct t_relay_server *server) _("%s%s: cannot create socket: error %d %s"), weechat_prefix ("error"), RELAY_PLUGIN_NAME, errno, strerror (errno)); + if (errno == EAFNOSUPPORT) + { + weechat_printf (NULL, + _("%s%s: try /set relay.network.ipv6 off"), + weechat_prefix ("error"), RELAY_PLUGIN_NAME); + } return 0; }