MCPcopy
hub / github.com/mitmproxy/mitmproxy / ip_address

Method ip_address

mitmproxy/connection.py:324–331  ·  view source on GitHub ↗

*Deprecated:* An outdated alias for `Server.peername`.

(self)

Source from the content-addressed store, hash-verified

322
323 @property
324 def ip_address(self) -> Address | None: # pragma: no cover
325 """*Deprecated:* An outdated alias for `Server.peername`."""
326 warnings.warn(
327 "Server.ip_address is deprecated, use Server.peername instead.",
328 DeprecationWarning,
329 stacklevel=2,
330 )
331 return self.peername
332
333 @property
334 def cert(self) -> certs.Cert | None: # pragma: no cover

Callers 12

test_with_caMethod · 0.80
test_get_certMethod · 0.80
_fix_legacy_sansFunction · 0.80
format_addressFunction · 0.80
is_valid_hostFunction · 0.80
client_connectedMethod · 0.80
configureMethod · 0.80
resolveMethod · 0.80
tls_start_serverMethod · 0.80
_ip_or_dns_nameFunction · 0.80
monkey_dummy_certFunction · 0.80
dns_requestFunction · 0.80

Calls 1

warnMethod · 0.80

Tested by 2

test_with_caMethod · 0.64
test_get_certMethod · 0.64