Fix bug IR-363.
authorMike Taylor <mike@indexdata.com>
Fri, 23 Jan 2015 11:15:40 +0000 (11:15 +0000)
committerMike Taylor <mike@indexdata.com>
Fri, 23 Jan 2015 11:15:40 +0000 (11:15 +0000)
Set the proxy as well as user/password when connecting to a target.

lib/ZOOM/IRSpy/Test/Ping.pm

index a6d8d55..ec6c441 100644 (file)
@@ -24,8 +24,10 @@ sub start {
     my $xc = $conn->record()->xpath_context();
     my $user = $xc->find("e:serverInfo/e:authentication/e:user");
     my $password = $xc->find("e:serverInfo/e:authentication/e:password");
+    my $proxy = $xc->find("e:serverInfo/e:authentication/e:proxy");
     $options{"*user"} = $user if $user;
     $options{"*password"} = $password if $password;
+    $options{"*proxy"} = $proxy if $proxy;
 
     $conn->irspy_connect(undef, \%options,
                         ZOOM::Event::ZEND, \&connected,