Commit 9efc3f79 authored by Leigh Stoller's avatar Leigh Stoller

Minor bug fix for public IP search.

parent ae609f89
......@@ -83,16 +83,6 @@ if (isset($IP)) {
if (! preg_match('/^[0-9\.]+$/', $IP)) {
USERERROR("Does not look like a valid IP address.", 1);
}
$node = Node::LookupByIP($IP);
#
# Switch to a node_id if its a physical node. Otherwise,
# continue with the IP.
#
if ($node && !$node->IsVirtNode()) {
$node_id = $node->node_id();
$IP = null;
}
}
else {
$IP = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment