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