mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 04:29:21 +03:00
Bugfix domain autoconfig error
This commit is contained in:
parent
8c3a4b4fc7
commit
3ec93d11ea
2 changed files with 2 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue