From: Florent Bruneau Date: Fri, 6 May 2011 19:47:52 +0000 (+0200) Subject: Default port for nntps is 563 X-Git-Url: http://git.polytechnique.org/?p=banana.git;a=commitdiff_plain;h=b0d3d6655d783466a0aac0053956437097cf5af6 Default port for nntps is 563 Signed-off-by: Florent Bruneau --- 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