mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-02 11:18:56 +00:00
Fix some constants
This commit is contained in:
+2
-2
@@ -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?
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user