1
0
Fork 0

Fix: Corrected prototype for sock_get_server_socket()

This commit is contained in:
Philipp Schafft 2022-03-12 18:10:48 +00:00
parent bb12858abe
commit 2b39d7f178
1 changed files with 4 additions and 1 deletions

View File

@ -879,13 +879,16 @@ sock_t sock_connect_wto_bind (const char *hostname, int port, const char *bnd, i
** interface. if interface is null, listen on all interfaces.
** returns the socket, or SOCK_ERROR on failure
*/
sock_t sock_get_server_socket(int port, const char *sinterface)
sock_t sock_get_server_socket (int port, const char *sinterface, bool prefer_inet6)
{
struct sockaddr_in sa;
int error, opt;
sock_t sock;
char ip[MAX_ADDR_LEN];
/* Not supported. */
(void)prefer_inet6;
if (port < 0)
return SOCK_ERROR;