aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/upstream.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-11-07 12:49:50 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-11-07 12:54:14 +0000
commit49768177cfb52e9bf9ea3c5376d26d1247c73b3a (patch)
tree184211096b4beb72a7ec32208b9cb3cbb7fd91a4 /src/libutil/upstream.h
parentd027742ff9aaef3ea2db8370f33bd533640b836a (diff)
downloadrspamd-49768177cfb52e9bf9ea3c5376d26d1247c73b3a.tar.gz
rspamd-49768177cfb52e9bf9ea3c5376d26d1247c73b3a.zip
[Minor] Allow to get a port for a specific upstream
Diffstat (limited to 'src/libutil/upstream.h')
-rw-r--r--src/libutil/upstream.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libutil/upstream.h b/src/libutil/upstream.h
index 72a768892..e81fa2ed7 100644
--- a/src/libutil/upstream.h
+++ b/src/libutil/upstream.h
@@ -249,6 +249,13 @@ gboolean rspamd_upstream_add_addr (struct upstream *up,
const gchar *rspamd_upstream_name (struct upstream *up);
/**
+ * Returns the port of the current addres for the upstream
+ * @param up
+ * @return
+ */
+gint rspamd_upstream_port (struct upstream *up);
+
+/**
* Sets opaque user data associated with this upstream
* @param up
* @param data