MCPcopy Create free account
hub / github.com/Invisv-Privacy/masque / IsDisallowedPort

Function IsDisallowedPort

config.go:33–38  ·  view source on GitHub ↗

IsDisallowedPort returns true if the given destination port number is a value that will be rejected by Fastly.

(dport uint16)

Source from the content-addressed store, hash-verified

31
32// IsDisallowedPort returns true if the given destination port number is a value that will be rejected by Fastly.
33func IsDisallowedPort(dport uint16) bool {
34 if !disallowedPortsBitsetInitialized {
35 initDisallowedPortsBitset()
36 }
37 return dport <= MAX_DISALLOWED_PORT_NUM && disallowedPortsBitset[dport]
38}

Callers 2

handleConnectMasqueFunction · 0.92
HandleConnectMasqueFunction · 0.92

Calls 1

Tested by

no test coverage detected