This commit is contained in:
Andrew Pimenov 2026-08-26 17:05:00 +03:00 • committed by GitHub
commit d2273b16aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 1 additions and 3 deletions

View file

@ -538,7 +538,6 @@ class QuicResult:
@dataclass
class PmtuResult:
host: str
resolved_ip: str | None = None
method: str = "none"
discovered_mtu: int | None = None
iface_mtu: int | None = None

View file

@ -123,7 +123,6 @@ async def probe_pmtu(
result.note = f"could not resolve {host}: {exc}"
result.note_ru = f"не удалось разрешить {host}: {exc}"
return result
result.resolved_ip = resolved_ip
system = platform.system()
result.method = "icmp_win" if system == "Windows" else "system_ping"

View file

@ -90,7 +90,7 @@ def test_unix_ping_df_argv_rounds_a_fractional_timeout_up():
def pmtu(**kw) -> PmtuResult:
base = dict(host="example.com", resolved_ip="1.2.3.4", method="icmp_win", verdict="unknown")
base = dict(host="example.com", method="icmp_win", verdict="unknown")
base.update(kw)
return PmtuResult(**base)