summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/widgets
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2016-12-04 10:44:53 +0100
committerRenato Botelho <renato@netgate.com>2016-12-05 18:12:04 -0200
commit74213edf66d656b23724f3e779409533d8a77f59 (patch)
treef08ad87b4c6e36e17b49bf101250f02ed0820cbd /src/usr/local/www/widgets
parentb0787bc8e94ca7f4d29dd78ec720d9eefa05fc25 (diff)
downloadpfsense-74213edf66d656b23724f3e779409533d8a77f59.zip
pfsense-74213edf66d656b23724f3e779409533d8a77f59.tar.gz
Do not truncate IPv6 addresss in NTP widget (Bug #4815)
(cherry picked from commit cd2c59c9839e38fa7cbd4ae217fe14883b086145)
Diffstat (limited to 'src/usr/local/www/widgets')
-rw-r--r--src/usr/local/www/widgets/widgets/ntp_status.widget.php2
1 files changed, 1 insertions, 1 deletions
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 839b5e5..317e43e 100644
--- a/src/usr/local/www/widgets/widgets/ntp_status.widget.php
+++ b/src/usr/local/www/widgets/widgets/ntp_status.widget.php
@@ -83,7 +83,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) {
OpenPOWER on IntegriCloud