diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-10-28 16:04:33 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-10-28 16:04:33 +0000 |
commit | cbde625fb24020aa9038947f865cd41e91687553 (patch) | |
tree | a746cdb8379b626030a41734f86299cd43c36715 /src/libutil/addr.h | |
parent | f046f61e40a6033828e89be935637c9d8a389092 (diff) | |
download | rspamd-cbde625fb24020aa9038947f865cd41e91687553.tar.gz rspamd-cbde625fb24020aa9038947f865cd41e91687553.zip |
Allow multiple addresses per upstream.
Diffstat (limited to 'src/libutil/addr.h')
-rw-r--r-- | src/libutil/addr.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/libutil/addr.h b/src/libutil/addr.h index 4e3a936f8..5989b740b 100644 --- a/src/libutil/addr.h +++ b/src/libutil/addr.h @@ -96,7 +96,8 @@ gboolean rspamd_ip_is_valid (rspamd_inet_addr_t *addr); gint rspamd_accept_from_socket (gint sock, rspamd_inet_addr_t *addr); gboolean rspamd_parse_host_port_priority_strv (gchar **tokens, - rspamd_inet_addr_t *addr, guint *priority, gchar **name, guint default_port); + rspamd_inet_addr_t **addr, guint *max_addrs, guint *priority, + gchar **name, guint default_port); /** * Parse host[:port[:priority]] line @@ -106,7 +107,8 @@ gboolean rspamd_parse_host_port_priority_strv (gchar **tokens, * @return TRUE if string was parsed */ gboolean rspamd_parse_host_port_priority (const gchar *str, - rspamd_inet_addr_t *addr, guint *priority, gchar **name, guint default_port); + rspamd_inet_addr_t **addr, guint *max_addrs, + guint *priority, gchar **name, guint default_port); /** * Parse host:port line @@ -115,7 +117,8 @@ gboolean rspamd_parse_host_port_priority (const gchar *str, * @return TRUE if string was parsed */ gboolean rspamd_parse_host_port (const gchar *str, - rspamd_inet_addr_t *addr, gchar **name, guint default_port); + rspamd_inet_addr_t **addr, guint *max_addrs, + gchar **name, guint default_port); #endif /* ADDR_H_ */ |