(field, masterKeyIps)
| 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') { |