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;