From b0d3d6655d783466a0aac0053956437097cf5af6 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Fri, 6 May 2011 21:47:52 +0200 Subject: [PATCH] Default port for nntps is 563 Signed-off-by: Florent Bruneau --- banana/nntp.inc.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/banana/nntp.inc.php b/banana/nntp.inc.php index f352292..a880dd0 100644 --- a/banana/nntp.inc.php +++ b/banana/nntp.inc.php @@ -26,14 +26,16 @@ class BananaNNTP extends BananaNNTPCore implements BananaProtocoleInterface $url = parse_url(Banana::$nntp_host); if ($url['scheme'] == 'nntps' || $url['scheme'] == 'snntp') { $url['host'] = 'ssl://' . $url['host']; - } - if (!isset($url['port'])) { + if (!isset($url['port'])) { + $url['port'] = 563; + } + } else if (!isset($url['port'])) { $url['port'] = 119; } parent::__construct($url['host'], $url['port']); if (isset($url['user'])) { $this->authinfo($url['user'], $url['pass']); - } + } } /** Return the descript;ion of the current box -- 2.1.4