diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-05-31 17:45:18 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-05-31 17:45:18 +0100 |
commit | 8cc2aee8859731ee2fe280070423f79e7d009ca3 (patch) | |
tree | 76951e59a1285c02ae50a89cbf69fcbb11f89b6b /src/util.h | |
parent | 7b3682ce3c78d26dd75782f931611bd09bcc76a5 (diff) | |
download | rspamd-8cc2aee8859731ee2fe280070423f79e7d009ca3.tar.gz rspamd-8cc2aee8859731ee2fe280070423f79e7d009ca3.zip |
Use getaddrinfo when opening sockets.
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.h b/src/util.h index 6bec21f46..3dfa851bc 100644 --- a/src/util.h +++ b/src/util.h @@ -17,11 +17,11 @@ struct classifier_config; /* * Create socket and bind or connect it to specified address and port */ -gint make_tcp_socket (struct in_addr *, u_short, gboolean is_server, gboolean async); +gint make_tcp_socket (struct addrinfo *, gboolean is_server, gboolean async); /* * Create socket and bind or connect it to specified address and port */ -gint make_udp_socket (struct in_addr *, u_short, gboolean is_server, gboolean async); +gint make_udp_socket (struct addrinfo *, gboolean is_server, gboolean async); /* * Accept from socket */ |