MCPcopy Create free account
hub / github.com/CL-lau/SQL-GPT / is_valid_port

Function is_valid_port

utils/st_content.py:94–102  ·  view source on GitHub ↗
(port)

Source from the content-addressed store, hash-verified

92
93
94def is_valid_port(port):
95 try:
96 port = int(port)
97 if 0 <= int(port) <= 65535:
98 return True
99 else:
100 return False
101 except:
102 return False

Callers 1

init_proxyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected