Handle systems with IP specified
authorJamie Cameron <jcameron@webmin.com>
Tue, 15 Sep 2009 00:04:01 +0000 (17:04 -0700)
committerJamie Cameron <jcameron@webmin.com>
Tue, 15 Sep 2009 00:04:01 +0000 (17:04 -0700)
servers/link.cgi

index d7cd6f1..69864e7 100755 (executable)
@@ -63,8 +63,8 @@ else {
        }
 
 # Connect to the server
-$con = &make_http_connection($s->{'host'}, $s->{'port'}, $s->{'ssl'},
-                            $meth, $path);
+$con = &make_http_connection($s->{'ip'} || $s->{'host'}, $s->{'port'},
+                            $s->{'ssl'}, $meth, $path);
 &error($con) if (!ref($con));
 
 # Send request headers