Skip to content

Commit

Permalink
Merge pull request #3 from johnduprey/dev
Browse files Browse the repository at this point in the history
Update Read-MXRecord.ps1
  • Loading branch information
JohnDuprey authored Feb 3, 2023
2 parents 303ff6a + efc6879 commit 1a936b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DNSHealth/Public/Records/Read-MXRecord.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ function Read-MXRecord {
elseif ($Result.Status -ne 0 -or -not ($Result.Answer)) {
if ($Result.Status -eq 3) {
$ValidationFails.Add($NoMxValidation) | Out-Null
$MXResults.MailProvider = Get-Content 'MailProviders\Null.json' | ConvertFrom-Json
$MXResults.MailProvider = Get-Content "$PSScriptRoot\MailProviders\Null.json" | ConvertFrom-Json
$MXResults.Selectors = $MXRecords.MailProvider.Selectors
}
else {
$ValidationFails.Add($NoMxValidation) | Out-Null
$MXResults.MailProvider = Get-Content 'MailProviders\Null.json' | ConvertFrom-Json
$MXResults.MailProvider = Get-Content "$PSScriptRoot\MailProviders\Null.json" | ConvertFrom-Json
$MXResults.Selectors = $MXRecords.MailProvider.Selectors
}
$MXRecords = $null
Expand Down

0 comments on commit 1a936b9

Please sign in to comment.