mirror of
https://github.com/weechat/weechat.git
synced 2026-07-03 08:13:14 +02:00
relay: add message when address family is not supported by protocol (on socket creation)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user