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/libserver/cfg_file.h | |
parent | a84fef624d9de5faf21bcc393cb4156c4a65a010 (diff) | |
download | rspamd-1485bf2c42c3104696ec3a6c5e61ebe627a71c21.tar.gz rspamd-1485bf2c42c3104696ec3a6c5e61ebe627a71c21.zip |
[Rework] Move local IPs check
Diffstat (limited to 'src/libserver/cfg_file.h')
-rw-r--r-- | src/libserver/cfg_file.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libserver/cfg_file.h b/src/libserver/cfg_file.h index 4a8ab5bfc..1d782dd8b 100644 --- a/src/libserver/cfg_file.h +++ b/src/libserver/cfg_file.h @@ -846,6 +846,12 @@ gboolean rspamd_libs_reset_compression (struct rspamd_external_libs_ctx *ctx); void rspamd_deinit_libs (struct rspamd_external_libs_ctx *ctx); /** + * Returns TRUE if an address belongs to some local address + */ +gboolean rspamd_ip_is_local_cfg (struct rspamd_config *cfg, + const rspamd_inet_addr_t *addr); + +/** * Configure libraries */ gboolean rspamd_config_libs (struct rspamd_external_libs_ctx *ctx, |