diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-12-07 15:43:55 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-12-07 15:43:55 +0000 |
commit | 5d6581cfe0647f2ac9d3bbf170ee6ef5ff6cf39e (patch) | |
tree | 80b00c901521d8b3a95822ffa338c6573d76483a /src/libutil/regexp.h | |
parent | d2a8b3d26c71554e3dda7d7b8f4fe1344587d40a (diff) | |
download | rspamd-5d6581cfe0647f2ac9d3bbf170ee6ef5ff6cf39e.tar.gz rspamd-5d6581cfe0647f2ac9d3bbf170ee6ef5ff6cf39e.zip |
[Feature] Improve address rotation algorithm
We apply the following algorithm:
1) Get the current element and it's AF
2) If the next element has the same AF, then we just move to the next element
3) If the next element has different AF, then we should find the next element with the same AF
4) If we cannot find such element, then we return the next element (switching AF)
Diffstat (limited to 'src/libutil/regexp.h')
0 files changed, 0 insertions, 0 deletions