From 1d9ad5f6058d051add5872399158fed210f8faf5 Mon Sep 17 00:00:00 2001 From: dima <44449344+dima69@users.noreply.github.com> Date: Wed, 1 Apr 2026 15:23:16 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20replace=20Cyrillic=20'=D0=A1'=20with=20L?= =?UTF-8?q?atin=20'C'=20in=20Country=20property=20(#11518)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/test zapret.ps1 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/utils/test zapret.ps1 b/utils/test zapret.ps1 index db9c7ea..0abb418 100644 --- a/utils/test zapret.ps1 +++ b/utils/test zapret.ps1 @@ -94,7 +94,7 @@ function Get-DpiSuite { Select-Object ` @{n='Id'; e={$_.id}}, @{n='Provider'; e={$_.provider}}, - @{n='小ountry'; e={$_.country}}, + @{n='Country'; e={$_.country}}, @{n='Host'; e={$_.host}} } catch { @@ -112,10 +112,10 @@ function Build-DpiTargets { $targets = @() if ($CustomHost) { - $targets += @{ Id = "CUSTOM"; Provider = "Custom"; 小ountry = "馃挕"; Host = $CustomHost } + $targets += @{ Id = "CUSTOM"; Provider = "Custom"; Country = "馃挕"; Host = $CustomHost } } else { foreach ($entry in $suite) { - $targets += @{ Id = $entry.Id; 小ountry = $entry.小ountry; Provider = $entry.Provider; Host = $entry.Host } + $targets += @{ Id = $entry.Id; Country = $entry.Country; Provider = $entry.Provider; Host = $entry.Host } } } @@ -224,7 +224,7 @@ function Invoke-DpiSuite { return [PSCustomObject]@{ TargetId = $target.Id Provider = $target.Provider - 小ountry = $target.小ountry + Country = $target.Country Lines = $lines Warned = $warned } @@ -268,7 +268,7 @@ function Invoke-DpiSuite { $res = $rs.Powershell.EndInvoke($rs.Handle) $results += $res - Write-Host "`n=== [$($res.小ountry)][$($res.Provider)] $($res.TargetId) ===" -ForegroundColor DarkCyan + Write-Host "`n=== [$($res.Country)][$($res.Provider)] $($res.TargetId) ===" -ForegroundColor DarkCyan foreach ($line in $res.Lines) { $msg = "[{0}] code={1} buf_up={2} bytes ({3} KB) buf_down={4} bytes ({5} KB) time={6}s status={7}" -f $line.TestLabel, $line.Code, $line.UpBytes, $line.UpKB, $line.DownBytes, $line.DownKB, $line.Time, $line.Status Write-Host $msg -ForegroundColor $line.Color