MCPcopy Create free account
hub / github.com/masterking32/MasterHttpRelayVPN / _cfg_int

Method _cfg_int

src/proxy/proxy_server.py:262–267  ·  view source on GitHub ↗
(config: dict, key: str, default: int, *, minimum: int = 1)

Source from the content-addressed store, hash-verified

260
261 @staticmethod
262 def _cfg_int(config: dict, key: str, default: int, *, minimum: int = 1) -> int:
263 try:
264 value = int(config.get(key, default))
265 except (TypeError, ValueError):
266 value = default
267 return max(minimum, value)
268
269 @staticmethod
270 def _cfg_float(config: dict, key: str, default: float,

Callers 1

__init__Method · 0.95

Calls 1

getMethod · 0.80

Tested by

no test coverage detected