diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-02-12 15:02:41 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-02-12 15:02:41 +0000 |
commit | 1485bf2c42c3104696ec3a6c5e61ebe627a71c21 (patch) | |
tree | daff0411f4abfe503975ae34f29f1c6628594819 /src/rspamd_proxy.c | |
parent | a84fef624d9de5faf21bcc393cb4156c4a65a010 (diff) | |
download | rspamd-1485bf2c42c3104696ec3a6c5e61ebe627a71c21.tar.gz rspamd-1485bf2c42c3104696ec3a6c5e61ebe627a71c21.zip |
[Rework] Move local IPs check
Diffstat (limited to 'src/rspamd_proxy.c')
-rw-r--r-- | src/rspamd_proxy.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rspamd_proxy.c b/src/rspamd_proxy.c index f1a557133..e9ce9ef5e 100644 --- a/src/rspamd_proxy.c +++ b/src/rspamd_proxy.c @@ -1415,8 +1415,7 @@ proxy_open_mirror_connections (struct rspamd_proxy_session *session) } if (m->local || - rspamd_inet_address_is_local ( - rspamd_upstream_addr_cur (bk_conn->up), FALSE)) { + rspamd_inet_address_is_local (rspamd_upstream_addr_cur (bk_conn->up))) { if (session->fname) { rspamd_http_message_add_header (msg, "File", session->fname); @@ -1951,7 +1950,7 @@ retry: if (backend->local || rspamd_inet_address_is_local ( rspamd_upstream_addr_cur ( - session->master_conn->up), FALSE)) { + session->master_conn->up))) { if (session->fname) { rspamd_http_message_add_header (msg, "File", session->fname); |