From e1e67d1f930f730eb898722bd1e12fa8f1db3eb8 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Mon, 24 Apr 2017 23:58:10 +0200 Subject: [PATCH] Fix some constants --- nntmux/NNTP.php | 4 ++-- nntmux/utility/Utility.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/nntmux/NNTP.php b/nntmux/NNTP.php index 7c4757cb4..c870b4b8d 100755 --- a/nntmux/NNTP.php +++ b/nntmux/NNTP.php @@ -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? diff --git a/nntmux/utility/Utility.php b/nntmux/utility/Utility.php index 61ab3dc56..e8a059cce 100755 --- a/nntmux/utility/Utility.php +++ b/nntmux/utility/Utility.php @@ -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;