mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-08-18 06:26:28 +00:00
fix: removes www restriction
This commit is contained in:
@@ -15,7 +15,7 @@ const toHostList = R.chain(data => {
|
||||
// URL redirection must contain explicit A record
|
||||
// Wildcard A record breaks when used with MX
|
||||
// Ref: https://github.com/is-a-dev/register/issues/2365
|
||||
if (data.record.URL && data.record.MX || data.name === '@') {
|
||||
if ((data.record.URL && data.record.MX) || data.name === '@') {
|
||||
data.record.A = [ DOMAIN_HOST_IP ]
|
||||
}
|
||||
|
||||
|
||||
@@ -134,7 +134,7 @@ const getDomainService = ({ cpanel }) => {
|
||||
batchLazyTasks(BATCH_SIZE),
|
||||
R.filter(Boolean),
|
||||
R.map(R.cond([
|
||||
[R.propEq('name', 'www'), R.always(null)], // Ignore www
|
||||
// [R.propEq('name', 'www'), R.always(null)], // Ignore www
|
||||
[R.propEq('type', 'URL'), addRedirection],
|
||||
[R.T, addZoneRecord],
|
||||
])),
|
||||
|
||||
Reference in New Issue
Block a user