mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 07:32:04 +02:00
fix #641
Track the address family of the last failed connection attempt (either immediately or during TLS handshake), then disprefer that address family during reconnection.
This commit is contained in:
parent
50f8791f1e
commit
7d44964dcd
3 changed files with 15 additions and 3 deletions
|
|
@ -11,6 +11,7 @@ int proxy_port;
|
|||
char *proxy_string, *proxy_string_after, *proxy_password;
|
||||
|
||||
unsigned short family; /* 0 = don't care, AF_INET or AF_INET6 */
|
||||
unsigned short chosen_family; /* family actually chosen during name resolution */
|
||||
char *tag; /* try to keep this tag when connected to server */
|
||||
char *address;
|
||||
int port;
|
||||
|
|
@ -43,5 +44,6 @@ unsigned int unix_socket:1; /* Connect using named unix socket */
|
|||
unsigned int use_tls:1; /* this connection uses TLS */
|
||||
unsigned int tls_verify:1;
|
||||
unsigned int no_connect:1; /* don't connect() at all, it's done by plugin */
|
||||
unsigned short last_failed_family; /* #641: if we failed to connect to ipv6, try ipv4 and vice versa */
|
||||
char *channels;
|
||||
char *away_reason;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue