X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=ntp.conf.php;h=6a05587264e81056f3746e4d3c115858027ef045;hb=524fd2d0ee134f86eaf1cc3aa433778327a699be;hp=4b281455f527f55f7a3286fb6addbb53f7963ad5;hpb=ad638a3d9c2530d7bc51b8d41b6f1eb5b3ea6085;p=nodeconfig.git diff --git a/ntp.conf.php b/ntp.conf.php index 4b28145..6a05587 100755 --- a/ntp.conf.php +++ b/ntp.conf.php @@ -5,7 +5,7 @@ // Marc Fiuczynski // Copyright (C) 2006 The Trustees of Princeton University // -// $Id$ +// $Id: ntp.conf.php,v 1.1 2006/11/06 22:02:17 mlhuang Exp $ // // Get admin API handle @@ -18,7 +18,7 @@ $default_name = "default"; $file_name = $config_directory . $file_prefix . $default_name; // Look up the node -$nodenetworks = $adm->GetNodeNetworks(array($_SERVER['REMOTE_ADDR'])); +$nodenetworks = $adm->GetNodeNetworks(array('ip' => $_SERVER['REMOTE_ADDR'])); if (!empty($nodenetworks)) { $nodes = $adm->GetNodes(array($nodenetworks[0]['node_id'])); if (!empty($nodes)) {