- Mail in a Box: comandi per aggiungere/modificare/rimuovere le caselle di posta
- aggiunto idMyGroup: ospiti siti di gruppi (AbitareGliIblei)
This commit is contained in:
@@ -8747,22 +8747,29 @@ export const tools = {
|
||||
}
|
||||
},
|
||||
|
||||
getHostPuntamento(arrDNS: any, tofind: string, paramsulServer: string): any {
|
||||
getHostPuntamento(arrDNS: any, tofind: string, paramsulServer: string, type: string): any {
|
||||
let checkDomain = ''
|
||||
let indrec = arrDNS.findIndex((rec: any) => rec.name === tofind && rec.type === 'A')
|
||||
let color = 'red'
|
||||
let ok = false
|
||||
if (indrec >= 0) {
|
||||
checkDomain = tofind + ' -> ' + arrDNS[indrec].content
|
||||
let giusto = (paramsulServer === arrDNS[indrec].content)
|
||||
color = giusto ? 'green' : 'red'
|
||||
if (!giusto) {
|
||||
checkDomain += ' (<strong>al posto di -> ' + paramsulServer + '</strong>)'
|
||||
} else {
|
||||
ok = true
|
||||
try {
|
||||
if (arrDNS) {
|
||||
let indrec = arrDNS.findIndex((rec: any) => rec.name === tofind && rec.type === type)
|
||||
if (indrec >= 0) {
|
||||
checkDomain = tofind + ' -> ' + arrDNS[indrec].content
|
||||
let giusto = (paramsulServer === arrDNS[indrec].content)
|
||||
color = giusto ? 'green' : 'red'
|
||||
if (!giusto) {
|
||||
checkDomain += ' (<strong>al posto di -> ' + paramsulServer + '</strong>)'
|
||||
} else {
|
||||
ok = true
|
||||
}
|
||||
} else {
|
||||
checkDomain = tofind + ' N/A'
|
||||
}
|
||||
}
|
||||
} else {
|
||||
checkDomain = tofind + ' N/A'
|
||||
|
||||
} catch (e) {
|
||||
console.log('Error: ', e)
|
||||
}
|
||||
|
||||
return { text: '<span style="color: ' + color + ';">' + checkDomain + '</span><br>', ok }
|
||||
|
||||
Reference in New Issue
Block a user