MCPcopy Index your code
hub / github.com/parse-community/parse-server / validateIps

Method validateIps

src/Config.js:627–636  ·  view source on GitHub ↗
(field, masterKeyIps)

Source from the content-addressed store, hash-verified

625 }
626
627 static validateIps(field, masterKeyIps) {
628 for (let ip of masterKeyIps) {
629 if (ip.includes('/')) {
630 ip = ip.split('/')[0];
631 }
632 if (!net.isIP(ip)) {
633 throw `The Parse Server option "${field}" contains an invalid IP address "${ip}".`;
634 }
635 }
636 }
637
638 static validateEnableInsecureAuthAdapters(enableInsecureAuthAdapters) {
639 if (enableInsecureAuthAdapters && typeof enableInsecureAuthAdapters !== 'boolean') {

Callers 1

validateOptionsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected