MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / is_valid_port

Function is_valid_port

mitmproxy/net/check.py:42–43  ·  view source on GitHub ↗
(port: int)

Source from the content-addressed store, hash-verified

40
41
42def is_valid_port(port: int) -> bool:
43 return 0 <= port <= 65535

Callers 1

parse_authorityFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…