Bugfix domain autoconfig error

This commit is contained in:
the-djmaze 2024-02-05 20:52:33 +01:00
parent 8c3a4b4fc7
commit 3ec93d11ea
2 changed files with 2 additions and 3 deletions

View file

@ -309,8 +309,7 @@ export class DomainPopupView extends AbstractViewPopup {
autoconfig() {
let domain = this.name();
Remote.request('AdminDomainAutoconfig', (iError, oData) => {
console.dir({iError, oData});
if (!iError) {
if (oData?.Result?.config) {
let server = oData.Result.config.incomingServer[0];
this.imapHost(server.hostname);
this.imapPort(server.port);

View file

@ -83,7 +83,7 @@ abstract class Autoconfig
$oCache = \RainLoop\Api::Actions()->Cacher();
$list = $oCache->Get('public_suffix_list') ?: null;
if ($list) {
$list = \json_decode($list);
$list = \json_decode($list, true);
if ($list[1] < \time()) {
$list = null;
} else {