]> git.ipfire.org Git - thirdparty/rspamd.git/commit
Rework IP addresses in upstreams.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 7 Nov 2014 13:33:45 +0000 (13:33 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 7 Nov 2014 13:33:45 +0000 (13:33 +0000)
commitcd5656abb755d5070651b1594bc4b2f8acd345df
tree8856926125af323e2722f67ba15f1c53037078fb
parent9691ba214d38cda7042ba902acd3c6e7231aa6b7
Rework IP addresses in upstreams.

- Select ipv4/unix addresses if they exist and use ipv6 for ipv6 only
  upstreams (since the support of ipv6 is poor in many OSes and
  environments).
- Free IP list on upstream destruction.
- Add test cases for addresses selection.
- Allow adding of free form IP addresses to upstreams.
src/libutil/upstream.c
src/libutil/upstream.h
test/rspamd_upstream_test.c