From efc68796c1a2987ab2334a57118396cab7ba7066 Mon Sep 17 00:00:00 2001 From: John Duprey Date: Fri, 3 Feb 2023 08:49:27 -0500 Subject: [PATCH] Update Read-MXRecord.ps1 --- DNSHealth/Public/Records/Read-MXRecord.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DNSHealth/Public/Records/Read-MXRecord.ps1 b/DNSHealth/Public/Records/Read-MXRecord.ps1 index cca664e..0e81fc7 100644 --- a/DNSHealth/Public/Records/Read-MXRecord.ps1 +++ b/DNSHealth/Public/Records/Read-MXRecord.ps1 @@ -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