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

View file

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

View file

@ -126,7 +126,6 @@ async def probe_pmtu(
result.resolved_ip = resolved_ip
system = platform.system()
result.method = "icmp_win" if system == "Windows" else "system_ping"
async def _probe(size: int) -> tuple[bool, bool]:
if system == "Windows":

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", resolved_ip="1.2.3.4", verdict="unknown")
base.update(kw)
return PmtuResult(**base)