mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-08 00:47:04 +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() {
|
autoconfig() {
|
||||||
let domain = this.name();
|
let domain = this.name();
|
||||||
Remote.request('AdminDomainAutoconfig', (iError, oData) => {
|
Remote.request('AdminDomainAutoconfig', (iError, oData) => {
|
||||||
console.dir({iError, oData});
|
if (oData?.Result?.config) {
|
||||||
if (!iError) {
|
|
||||||
let server = oData.Result.config.incomingServer[0];
|
let server = oData.Result.config.incomingServer[0];
|
||||||
this.imapHost(server.hostname);
|
this.imapHost(server.hostname);
|
||||||
this.imapPort(server.port);
|
this.imapPort(server.port);
|
||||||
|
|
|
||||||
|
|
@ -83,7 +83,7 @@ abstract class Autoconfig
|
||||||
$oCache = \RainLoop\Api::Actions()->Cacher();
|
$oCache = \RainLoop\Api::Actions()->Cacher();
|
||||||
$list = $oCache->Get('public_suffix_list') ?: null;
|
$list = $oCache->Get('public_suffix_list') ?: null;
|
||||||
if ($list) {
|
if ($list) {
|
||||||
$list = \json_decode($list);
|
$list = \json_decode($list, true);
|
||||||
if ($list[1] < \time()) {
|
if ($list[1] < \time()) {
|
||||||
$list = null;
|
$list = null;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue