summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libutil/addr.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libutil/addr.c b/src/libutil/addr.c
index 645c22d31..e24432cfa 100644
--- a/src/libutil/addr.c
+++ b/src/libutil/addr.c
@@ -956,3 +956,11 @@ rspamd_inet_address_copy (const rspamd_inet_addr_t *addr)
return n;
}
+
+gint
+rspamd_inet_address_get_af (const rspamd_inet_addr_t *addr)
+{
+ g_assert (addr != NULL);
+
+ return addr->af;
+}