[Web] Improve SPF checks

This commit is contained in:
andryyy
2020-05-25 16:13:51 +02:00
parent 20e289ce35
commit b6933fdb96
2 changed files with 14 additions and 2 deletions

View File

@@ -368,7 +368,7 @@ foreach ($records as $record) {
$record[2] == $spf_link) {
$state = state_nomatch;
$rslt = get_spf_allowed_hosts($record[0]);
if(in_array($ip, $rslt) && in_array($ip6, $rslt)){
if(in_array($ip, $rslt) && in_array(expand_ipv6($ip6), $rslt)){
$state = state_good;
}
$state .= '<br />' . $current[$data_field[$current['type']]].state_optional;