mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 13:39:22 +03:00
Added "Verify ssl certificate" setting in domain configuration popup (Closes #332)
This commit is contained in:
parent
c8bd765e12
commit
49f6c8bbe9
11 changed files with 87 additions and 34 deletions
|
|
@ -220,10 +220,10 @@ abstract class NetClient
|
|||
$this->iSecurityType = $iSecurityType;
|
||||
$this->bSecure = \MailSo\Net\Enumerations\ConnectionSecurityType::UseSSL(
|
||||
$this->iConnectedPort, $this->iSecurityType);
|
||||
|
||||
|
||||
$this->sConnectedHost = \in_array(\strtolower(\substr($this->sConnectedHost, 0, 6)), array('ssl://', 'tcp://')) ?
|
||||
\substr($this->sConnectedHost, 6) : $this->sConnectedHost;
|
||||
|
||||
|
||||
$this->sConnectedHost = ($this->bSecure ? 'ssl://' : 'tcp://').$this->sConnectedHost;
|
||||
// $this->sConnectedHost = ($this->bSecure ? 'ssl://' : '').$this->sConnectedHost;
|
||||
|
||||
|
|
@ -546,7 +546,7 @@ abstract class NetClient
|
|||
{
|
||||
$this->oLogger->Write('Socket: ['.$oException->getSocketCode().'] '.$oException->getSocketMessage(), $iDescType, $this->getLogName());
|
||||
}
|
||||
|
||||
|
||||
$this->oLogger->WriteException($oException, $iDescType, $this->getLogName());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue