MCPcopy Create free account
hub / github.com/catchpoint/WebPageTest.tsproxy / GetDestPort

Function GetDestPort

tsproxy.py:824–832  ·  view source on GitHub ↗
(port)

Source from the content-addressed store, hash-verified

822 winmm.timeEndPeriod(1)
823
824def GetDestPort(port):
825 global port_mappings
826 if port_mappings is not None:
827 src_port = str(port)
828 if src_port in port_mappings:
829 return port_mappings[src_port]
830 elif 'default' in port_mappings:
831 return port_mappings['default']
832 return port
833
834
835def SetPortMappings(map_string):

Callers 2

HandleConnectMethod · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected