Fix some constants

This commit is contained in:
DariusIII
2017-04-24 23:58:10 +02:00
parent bfeea3c0e7
commit e1e67d1f93
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -67,14 +67,14 @@ class NNTP extends \Net_NNTP_Client
* @var int
* @access protected
*/
protected $_currentPort = NNTP_PORT;
protected $_currentPort = 'NNTP_PORT';
/**
* Address of the current NNTP server.
* @var string
* @access protected
*/
protected $_currentServer = NNTP_SERVER;
protected $_currentServer = 'NNTP_SERVER';
/**
* Are we allowed to post to usenet?
+3 -3
View File
@@ -379,9 +379,9 @@ class Utility
];
} else {
$options = [
'verify_peer' => ($forceIgnore ? false : (bool)NN_SSL_VERIFY_PEER),
'verify_peer_name' => ($forceIgnore ? false : (bool)NN_SSL_VERIFY_HOST),
'allow_self_signed' => ($forceIgnore ? true : (bool)NN_SSL_ALLOW_SELF_SIGNED),
'verify_peer' => $forceIgnore ? false : (bool)NN_SSL_VERIFY_PEER,
'verify_peer_name' => $forceIgnore ? false : (bool)NN_SSL_VERIFY_HOST,
'allow_self_signed' => $forceIgnore ? true : (bool)NN_SSL_ALLOW_SELF_SIGNED,
];
if (!empty(NN_SSL_CAFILE)) {
$options['cafile'] = NN_SSL_CAFILE;