MCPcopy Create free account
hub / github.com/ValveSoftware/GameNetworkingSockets / CleanupMockIPs

Function CleanupMockIPs

tests/test_p2p.py:324–330  ·  view source on GitHub ↗

Remove loopback aliases added by --setup-mock-ips.

()

Source from the content-addressed store, hash-verified

322 print( "Setup complete." )
323
324def CleanupMockIPs():
325 """Remove loopback aliases added by --setup-mock-ips."""
326 for addr in _ALL_MOCK_ADDRS:
327 if addr in ( '127.0.0.1', '::1' ):
328 continue
329 _RemoveLoopbackAddr( addr )
330 print( "Cleanup complete." )
331
332def CheckMockIPsBindable():
333 """Verify all mock addresses are bindable; exit with an error if any are not."""

Callers 1

test_p2p.pyFile · 0.85

Calls 1

_RemoveLoopbackAddrFunction · 0.85

Tested by

no test coverage detected