From cd2c59c9839e38fa7cbd4ae217fe14883b086145 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Sun, 4 Dec 2016 10:44:53 +0100 Subject: [PATCH] Do not truncate IPv6 addresss in NTP widget (Bug #4815) --- src/usr/local/www/widgets/widgets/ntp_status.widget.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usr/local/www/widgets/widgets/ntp_status.widget.php b/src/usr/local/www/widgets/widgets/ntp_status.widget.php index c23a02f73d..b47a6fd8aa 100644 --- a/src/usr/local/www/widgets/widgets/ntp_status.widget.php +++ b/src/usr/local/www/widgets/widgets/ntp_status.widget.php @@ -51,7 +51,7 @@ if ($_REQUEST['updateme']) { $inet_version = " -4"; } - exec("/usr/local/sbin/ntpq -pn $inet_version | /usr/bin/tail +3", $ntpq_output); + exec("/usr/local/sbin/ntpq -pn -w $inet_version | /usr/bin/tail +3", $ntpq_output); $ntpq_counter = 0; $stratum_text = gettext("stratum"); foreach ($ntpq_output as $line) {