cloudflare: when proxying is enabled, use a valid IP
This commit is contained in:
@@ -248,7 +248,7 @@ async function verifyDomainConfig(domainObject) {
|
||||
|
||||
if (typeof domainConfig.defaultProxyStatus !== 'boolean') throw new BoxError(BoxError.BAD_FIELD, 'defaultProxyStatus must be a boolean');
|
||||
|
||||
const ip = '127.0.0.1';
|
||||
const ip = !domainConfig.defaultProxyStatus ? '127.0.0.1' : '103.31.4.0'; // when proxying 127.0.0.1 is not valid. use an address owned by cloudflare itself
|
||||
|
||||
const sanitizedConfig = {
|
||||
token: domainConfig.token,
|
||||
|
||||
Reference in New Issue
Block a user