diff options
author | ulim <a.sporto+bee@gmail.com> | 2008-08-12 13:04:37 +0200 |
---|---|---|
committer | ulim <a.sporto+bee@gmail.com> | 2008-08-12 13:04:37 +0200 |
commit | aac40178a6669e20855b7f5d3cc6a82cba10042e (patch) | |
tree | eaf497266afee2ea6dd2d8fe59be61a4ae3466b8 /dcc.c | |
parent | 5d550c51a5e9c9f48f26283f0ea3fee2d4945feb (diff) |
More hints for getaddrinfo().
Hopefully solves a problem on FreeBSD.
Diffstat (limited to 'dcc.c')
-rw-r--r-- | dcc.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -668,6 +668,9 @@ file_transfer_t *dcc_request( struct im_connection *ic, char *line ) filesize = atoll( input + pmatch[9].rm_so ); memset( &hints, 0, sizeof ( struct addrinfo ) ); + hints.ai_socktype = SOCK_STREAM; + hints.ai_flags = AI_NUMERICSERV; + if ( ( gret = getaddrinfo( host, port, &hints, &rp ) ) ) { g_free( input ); |