Merge branch 'main' into main

This commit is contained in:
jirafey
2024-01-07 22:25:56 +02:00
committed by GitHub
4 changed files with 27 additions and 2 deletions
+14
View File
@@ -0,0 +1,14 @@
{
"owner": {
"username": "aayank13",
"email": "aayank1306@gmail.com"
},
"record": {
"A": [
"217.174.245.249",
"51.161.54.161"
],
"MX": ["mail.is-a.dev"],
"TXT": "v=spf1 mx a:mail.is-a.dev ~all"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "blek is a dev",
"owner": {
"username": "b1ek",
"email": "me@blek.codes"
},
"record": {
"A": [ "185.130.226.115" ],
"AAAA": [ "2a05:b40:0:570:4563:92af:9a56:7fc8" ]
}
}
+1 -1
View File
@@ -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 ]
}
+1 -1
View File
@@ -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],
])),