X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PlanetLabConf%2Fproxies.php;h=f15d83376abecd3347a3819f89a30d2b69f4423d;hb=6045c4caf33bf49e06488b9a0a3cb09af26b0e63;hp=4431acadbfe07e0118d53c81820d71e36046655c;hpb=b815095fec39d567d31901c610de18c611dd5db5;p=nodeconfig.git diff --git a/PlanetLabConf/proxies.php b/PlanetLabConf/proxies.php index 4431aca..f15d833 100755 --- a/PlanetLabConf/proxies.php +++ b/PlanetLabConf/proxies.php @@ -9,25 +9,13 @@ # Mark Huang # Copyright (C) 2004 The Trustees of Princeton University # -# $Id$ -# GetNodeNetworks(array('ip' => $_SERVER['REMOTE_ADDR'])); -else - $interfaces = $adm->GetInterfaces(array('ip' => $_SERVER['REMOTE_ADDR'])); +$interfaces = $adm->GetInterfaces(array('ip' => $_SERVER['REMOTE_ADDR'])); if (!empty($interfaces)) { $nodes = $adm->GetNodes(array($interfaces[0]['node_id'])); @@ -40,10 +28,7 @@ if (!isset($node)) { exit(); } -if ($__PLC_API_VERSION==4.2) - $interfaces = $adm->GetInterfaces($node['nodenetwork_ids']); -else - $interfaces = $adm->GetInterfaces($node['interface_ids']); +$interfaces = $adm->GetInterfaces($node['interface_ids']); foreach ($interfaces as $interface) { // XXX PL2896: need interfaces.device