diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-08-25 00:24:47 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-08-25 00:24:47 +0000 |
commit | 1a043fa7b2d4f5280371556373f9990d869ce952 (patch) | |
tree | 87fdc275119911e1fa29431fcf84f62889043518 /etc | |
parent | c6fd72725d3af9ed02f7bc086075f149e97ca2f6 (diff) | |
download | pfsense-1a043fa7b2d4f5280371556373f9990d869ce952.zip pfsense-1a043fa7b2d4f5280371556373f9990d869ce952.tar.gz |
Resolve msntp hosts before invoking msntp.
Fixes long lasting resolution bug.
See http://forum.pfsense.org/index.php/topic,1918.0/topicseen.html
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/system.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 54f3f71..eccb160 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -606,9 +606,9 @@ function system_generate_lighty_config($filename, $max_procs = 1; $max_requests = 1; } - + /* we told you that 64 megs would be slow */ - if ($avail > 0 and $avail < 65) + if ($avail > 0 and $avail < 65) $fast_cgi_enable = false; if($fast_cgi_enable == true) { @@ -899,7 +899,7 @@ function system_ntp_configure() { $timeservers = ""; foreach (explode(' ', $syscfg['timeservers']) as $ts) - $timeservers .= " " . $ts; + $timeservers .= " " . gethostbyname($ts); mwexec_bg("/usr/local/bin/runmsntp.sh " . escapeshellarg("{$g['varrun_path']}/runmsntp.pid") . " " . |