diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-03-10 15:19:32 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-03-10 16:06:30 +0000 |
commit | 087dcad963c1e39f9cbeb7d6d166de33eccf62ce (patch) | |
tree | ba23f877dcea373d0992507413acf062cd043a0e /src/rspamd_proxy.c | |
parent | 57df6d019a3b99c8a49e73b4ea4bbc0ff4086b91 (diff) | |
download | rspamd-087dcad963c1e39f9cbeb7d6d166de33eccf62ce.tar.gz rspamd-087dcad963c1e39f9cbeb7d6d166de33eccf62ce.zip |
[Fix] Do not use local_addrs in proxy
Diffstat (limited to 'src/rspamd_proxy.c')
-rw-r--r-- | src/rspamd_proxy.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rspamd_proxy.c b/src/rspamd_proxy.c index ea8964d85..8be244229 100644 --- a/src/rspamd_proxy.c +++ b/src/rspamd_proxy.c @@ -1074,7 +1074,8 @@ proxy_open_mirror_connections (struct rspamd_proxy_session *session) } if (m->local || - rspamd_inet_address_is_local (rspamd_upstream_addr (bk_conn->up))) { + rspamd_inet_address_is_local ( + rspamd_upstream_addr (bk_conn->up), FALSE)) { if (session->fname) { rspamd_http_message_add_header (msg, "File", session->fname); @@ -1278,7 +1279,7 @@ retry: if (backend->local || rspamd_inet_address_is_local ( - rspamd_upstream_addr (session->master_conn->up))) { + rspamd_upstream_addr (session->master_conn->up), FALSE)) { if (session->fname) { rspamd_http_message_add_header (msg, "File", session->fname); |