mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
MDEV-6536: make --bind=hostname to listen on both IPv6 and IPv4 addresses
Binding to a hostname now makes MariaDB server to listen on all addresses that hostname resolves to. Rebased to 10.6 by Daniel Black Closes: #1668
This commit is contained in:
committed by
Daniel Black
parent
f691d9865b
commit
b3abcf80a1
@@ -75,6 +75,15 @@ struct st_mysql_socket
|
||||
/** The real socket descriptor. */
|
||||
my_socket fd;
|
||||
|
||||
/** Is this a Unix-domain socket? */
|
||||
char is_unix_domain_socket;
|
||||
|
||||
/** Is this a socket opened for the extra port? */
|
||||
char is_extra_port;
|
||||
|
||||
/** Address family of the socket. (See sa_family from struct sockaddr). */
|
||||
unsigned short address_family;
|
||||
|
||||
/**
|
||||
The instrumentation hook.
|
||||
Note that this hook is not conditionally defined,
|
||||
@@ -105,7 +114,7 @@ typedef struct st_mysql_socket MYSQL_SOCKET;
|
||||
static inline MYSQL_SOCKET
|
||||
mysql_socket_invalid()
|
||||
{
|
||||
MYSQL_SOCKET mysql_socket= {INVALID_SOCKET, NULL};
|
||||
MYSQL_SOCKET mysql_socket= {INVALID_SOCKET, 0, 0, 0, NULL};
|
||||
return mysql_socket;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user