Skip to content

Commit

Permalink
get the heighest priority MX
Browse files Browse the repository at this point in the history
  • Loading branch information
hbattat committed Jul 10, 2016
1 parent 896ffff commit 8efc41a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion verify.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ private function find_mx() {
}

if(!empty($mxhosts) ) {
$mx_ip = $mxhosts[array_search(min($mxweight), $mxhosts)];
$mx_ip = $mxhosts[array_search(min($mxweight), $mxweight)];
}
else {
if( filter_var($domain, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4) ) {
Expand Down

0 comments on commit 8efc41a

Please sign in to comment.