MCPcopy Create free account
hub / github.com/ElementsProject/lightning / validate_port

Function validate_port

plugins/wss-proxy-plugin/src/options.rs:130–135  ·  view source on GitHub ↗
(port: u16)

Source from the content-addressed store, hash-verified

128}
129
130fn validate_port(port: u16) -> bool {
131 if (1024..=65535).contains(&port) {
132 return true;
133 }
134 false
135}

Callers 1

parse_optionsFunction · 0.85

Calls 1

containsMethod · 0.80

Tested by

no test coverage detected