mirror of
https://github.com/Horizontal42/netsleuth.git
synced 2026-11-10 22:42:03 +03:00
Merge 5be367b9f7 into 8c99ac78b7
This commit is contained in:
commit
313c9fa108
3 changed files with 1 additions and 3 deletions
|
|
@ -539,7 +539,6 @@ class QuicResult:
|
||||||
class PmtuResult:
|
class PmtuResult:
|
||||||
host: str
|
host: str
|
||||||
resolved_ip: str | None = None
|
resolved_ip: str | None = None
|
||||||
method: str = "none"
|
|
||||||
discovered_mtu: int | None = None
|
discovered_mtu: int | None = None
|
||||||
iface_mtu: int | None = None
|
iface_mtu: int | None = None
|
||||||
verdict: str = "unknown"
|
verdict: str = "unknown"
|
||||||
|
|
|
||||||
|
|
@ -126,7 +126,6 @@ async def probe_pmtu(
|
||||||
result.resolved_ip = resolved_ip
|
result.resolved_ip = resolved_ip
|
||||||
|
|
||||||
system = platform.system()
|
system = platform.system()
|
||||||
result.method = "icmp_win" if system == "Windows" else "system_ping"
|
|
||||||
|
|
||||||
async def _probe(size: int) -> tuple[bool, bool]:
|
async def _probe(size: int) -> tuple[bool, bool]:
|
||||||
if system == "Windows":
|
if system == "Windows":
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@ def test_unix_ping_df_argv_rounds_a_fractional_timeout_up():
|
||||||
|
|
||||||
|
|
||||||
def pmtu(**kw) -> PmtuResult:
|
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)
|
base.update(kw)
|
||||||
return PmtuResult(**base)
|
return PmtuResult(**base)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue