1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 13:26:38 +02:00
Files
weechat/src/plugins/xfer
Raghavendra Prabhu 761c5e2d11 core/plugins: Use res_init before getaddrinfo.
With weechat, if the network changes in anyway that causes resolv.conf
to be updated, that is not picked up, resulting in

    irc: connecting to server XXXX.com/1026 (SSL)...
    irc: address "XXX.com" not found
    irc: error: Name or service not known
    irc: reconnecting to server in 30 seconds

This happens, especially when one connects to an irc server behind a
VPN.

This can also happen when there is no network connectivity weechat was started
but later network is connected to.

The fix is simple, it relies on calling  res_init (3) before getaddrinfo in
network_connect_child and other places.

res_init reloads the resolv.conf and getaddrinfo does not fail with
address resolution error.
2016-08-07 13:20:54 +01:00
..
2016-01-01 11:09:53 +01:00
2016-01-01 11:09:53 +01:00
2016-01-01 11:09:53 +01:00
2016-01-01 11:09:53 +01:00
2016-01-01 11:09:53 +01:00
2016-01-01 11:09:53 +01:00
2016-01-01 11:09:53 +01:00
2016-01-01 11:09:53 +01:00
2016-01-01 11:09:53 +01:00
2016-01-01 11:09:53 +01:00
2016-01-01 11:09:53 +01:00